id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > inc
prev  |  next  |  chance

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)

public int inc(String ltrs) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 440

Copyright Nick Parlante 2017 - privacy