about | help | code help+videos | done | prefs |
APCS String 2, Problem 9. We'll say that a "triple" in a string is a char appearing three times in a row. Return the number of triples in the given string. The triples may overlap. S29_countTriple("abcXXXabc") → 1 S29_countTriple("xxxabyyyycd") → 3 S29_countTriple("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: 200
Copyright Nick Parlante 2017 - privacy