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

 

pais@kinetigram.com recursion01 > R15_countX
prev  |  next  |  chance

APCS Recursion 1, Problem 5. Given a string, compute recursively (no loops) the number of lowercase 'x' chars in the string.


R15_countX("xxhixx") → 4
R15_countX("xhixhix") → 3
R15_countX("hi") → 0

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

public int R15_countX(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