about | help | code help+videos | done | prefs |
This method has a string input parameter which will only contain lower case letters. Return 0 if those letters are strictly increasing, which means that each letter comes alphabetically after the previous letter. If the letters are not strictly increasing, return the index of the first letter that is out of order. The string will contain at least one letter. inc("vwxya") → 4 inc("aeiou") → 0 inc("acefb") → 4 ...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: 440
Copyright Nick Parlante 2017 - privacy