max-heap

The max value in the max heap isn't the correct value

The max value in the max heap isn't the correct value Question: The program takes as input: (string)’yyyy-mm-dd’, (int)sensor id, (int)covid level. The expected output is: yyyy-mm-dd,covid level. Input: 2022−09−08, 23, 371; 2022−09−08, 2, 3171; 2022−09−08, 12, 43; 2021−03−21, 4, 129 Output: 2022 −09 −08, 3171 I have provided my code below. My output doesn’t …

Total answers: 1