Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Max occurrent char

Instructions

Given a string implement a function which returns the character that is most commonly used in that string.

challenge | solution

Examples

maxChar("abcccccccd") // "c"

maxChar("apple 1231111") // "1"

Hints

Hint 1 Use frequency counter or multiple pointers pattern.