Highest frequency

my code fail on two test cases why?

@Rishabhsharm this question has to be done with unordered map try using it (as no is very large)

give TLE in two test cases(https://ide.codingblocks.com/s/291486)

@Rishabhsharm ok wait some time will check it and tell you

@Rishabhsharm use fast input output as constraints are tight


also no need to initialize map with 0 as it is already 0 ( it also takes time)