codeLink : https://ide.codingblocks.com/s/186227
I am dnt understand y I am getting WA
please correct my code and specify my error
Highest frequency(Hashing challenge)
hey @Divya_321 there are couple of mistakes in your code
- you weren’t taking input n
- maxi wasnt initialized with 0, which lead to maxi taking large garbage values
- output is supposed to be number with maximum frequency not the maximum frequency itself.
Here is link of code with the required changes
https://ide.codingblocks.com/s/186232
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.