Highest frequency(Hashing). Only test case 2 is failing.
my code:
https://ide.codingblocks.com/s/62829
Test case 2 failing in Highest frequency (Hashing)
Can you explain the meaning of auto i : m in for loop?
@anant.mathur007 hi anant the auto is special kind of data type which is automatically type cast data which is store in hashmap if hashmap contain address so it will type cast into address or it change accordingly data store in hashmap in this senario auto is typecast with int
and auto i:m mean every pair of i contain in hashmap m basically you’re making pair of <int , int> so i is variable which is accessing the value contain in hashmap pair
Ok, thank you for your help.