about | help | code help+videos | done | prefs |
Return the number of times that the string "boat" appears anywhere in the given string(case sensitive), except we'll accept any letter for the 'a', so for example "boOt" and "bout" would count. countBoat("aaaboatbbb") → 1 countBoat("boatXXboat") → 2 countBoat("boZtXXboRt") → 2 ...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: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy