Algorithm to find the maximum occurring character in a string

Reading time: 15 minutes | Coding time: 5 minutes

One approach to solve this problem would be to sort the input string and then traverse through the sorted string to find the character which is occurring maximum number of times.

This is a companion discussion topic for the original entry at