Skip to content

Latest commit

 

History

History
 
 

max_occurring_char

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Max occurring char

Instructions

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

Challenge | Solution

Examples

max_occurring_char("abcccccccd") # "c"

max_occurring_char("apple 1231111") # "1"

Hints

Hint 1 Use frequency counter