about | help | code help+videos | done | prefs |
Write a method that returns the position in the string (with the first character being at position 0) of the LAST occurrence of 'ltr'. Look at the test data for examples. The only string methods you are allowed to use are .equals, .length, .substring, and .charAt. nov20_2015_APSLHL_lastOne("this is a smooth test", "s") → 19 nov20_2015_APSLHL_lastOne("abxcdxxxfhjilkxmx", "x") → 16 nov20_2015_APSLHL_lastOne("abxcdxxxfhjilkxmx", "a") → 0 ...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: 290
Copyright Nick Parlante 2017 - privacy