Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if the length of the string is less than one return true
- else if the first letter is greater than the second letter
- return call to recursive method with everything in string after first letter
- else
- return false
- cannot be A or B because would return false because a < b
- cannot be C because would eventually return false
- D would work because e > d > c > b > a, eventually becoming <= 1; returning true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement