If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Wednesday, July 24, 2013

Finding second highest frequency of characters in String

Write a method that accepts a String and returns the character with the second highest frequency. For example "aabbbc" would return 'a'. If the string contains spaces, they can be disregarded from the count. Note: my implementation returns a tuple (char, count) but that is just a matter of only returning the char itself.

1 comment: