Given a string implement a function which returns the character that is most commonly used in that string.
maxOccurringChar("abcccccccd") // "c"
maxOccurringChar("apple 1231111") // "1"
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Given a string implement a function which returns the character that is most commonly used in that string.
maxOccurringChar("abcccccccd") // "c"
maxOccurringChar("apple 1231111") // "1"