Max frequency character

https://online.codingblocks.com/app/player/127473/content/109914/4830/code-challenge
https://ide.geeksforgeeks.org/NfdMz9ULrg
why are errors coming

https://ide.geeksforgeeks.org/HYBMEsYFVY

Check now. You did not initialize the array and max variable.

working fine in 3 testcases but failing in 2 testcases

https://ide.geeksforgeeks.org/dgsrpm7SGJ
Submit this and check.

working fine now but i have a doubt that you have written freq[s[i]].here s[i] would be a character can we write a[some char].like we usually write a[0],a[1]

Yes you can write. That char would be converted to its ascii equivalent (which will be a integer from 0-255)

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.