about | help | code help+videos | done | prefs |
Given a non-empty string consisting only of lowercase letters, return true if the letters are in alphabetical order, and false otherwise. Write a recursive solution (no loops). NOTE: characters can be compared with <. For example: 'a' < 'b' is true, and 'b' < 'a' is false. abcOrder("abc") → true abcOrder("cow") → true abcOrder("cows") → false ...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: 300
Copyright Nick Parlante 2017 - privacy