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

 

pais@kinetigram.com > R18_countAbc
prev  |  next  |  chance

APCS Recursion 1, Problem 8. Count recursively the total number of "abc" and "aba" substrings that appear in the given string.


R18_countAbc("abc") → 1
R18_countAbc("abcxxabc") → 2
R18_countAbc("abaxxaba") → 2

...Save, Compile, Run (ctrl-enter)

public int R18_countAbc(String str) { }

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: 300

Copyright Nick Parlante 2017 - privacy