where i am getting wrong i m getting wrong answer for one case
Highest frequency 628
@neeleshr628 Your comparison does not seems logical. Cross check line 14 and 15 of your code.According to your code m[x] refers to the frequency of element x and min refers to the element. You are comparing m[x] with min which seems wrong. You need to print the element having maximum frequency so you should compare the frequency of each element in order to find the maximum frequency element.
So refer to this code: