about | help | code help+videos | done | prefs |
x is a string. Complete the function so that it counts the number of times that two adjacent characters are the same. countDoubles('follow eels') → 2 countDoubles('OOOOO') → 4 countDoubles('NoNoNoNo') → 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: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy