about | help | code help+videos | done | prefs |
Write a method that accepts a single String parameter. This string will consist of ONLY upper- and lower-case letters and spaces. Ignore the case of the letters and return an upper-case letter representing the MOST FREQUENTLY occuring letter. If there are ties for most frequently occuring letter, return the one that comes alphabetically first and is in the tie for most frequent. The input parameter will contain at least one letter. freqLetter("Statistical analysis was used to determine the author of some of the Federalist Papers") → "E" freqLetter("Programming must make much merryment") → "M" freqLetter("once upon a time there was a game and then there was not") → "E" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 390
Copyright Nick Parlante 2017 - privacy