why is this code failing last 2 test cases
π‘ Highest frequency( Hashing )
HI @aganunay, in line no. 15 to 23 of your code just replace it by:
m[a[i]]++;
Your code will work perfect then.
Hope this helps 
@aganunay pls try changing the variable types to long long int istead of int at required places. To know the required places pls check the constraints in question statement. See which variable can take what maximum value and what can be the maximum size of array.
Hope this helpsπ
I hope Iβve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.