Help in hashing concept

https://ide.codingblocks.com/s/98005?_ga=2.106012995.1181758698.1601296080-476859680.1590428614

i was taking reference from this code can you tell what he is doing from line 17 to line 26

hello @adarshsingh2k
image

in line 17-18 he assigned the first element as the maximum element .

now he is iterating through each element of the map.
if frequency of any element is greater than the current value of maxfrequency then he is updating frequncy value and its number

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.