Highest frequency hashing 123

https://ide.codingblocks.com/s/61172
two test cases passed
two test cases wrong
plz help

Hi AASTHA, please try changing the data types of variables from int to long long int. The rest of the code is fine.

it is still not working

Hi AASTHA, please change the < to <= in line no 18. It will work then.
Thank You :slight_smile:

done. thanks for the help