given a string return the character that appears the maximum number of times in the string. The String will contain only ASCII characters, from the range('a'-'z','A'-'Z','0'-'9'), and case matters. If there is a tie in the maximum number of times a character appears in the string, return the character that appears first in the string.
Answers
Answered by
0
Answer:
Write an efficient function to return maximum occurring character in the input string e.g., if input string is “test” then function should return ‘t’.
Similar questions