Category Archives: Hash

Return maximum occurring character in the input string

Write an efficient C function to return maximum occurring character in the input string e.g., if input string is “test” then function should return ‘t’. We strongly recommend that you click here and practice it, before moving on to the solution. Algorithm: One obvious approach to solve this problem would be to sort the input… Read More »