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

 

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

APCS Recursion 1, Problem 3. Given a string, compute recursively (no loops) the number of times lowercase "hi" appears in the string.


R13_countHi("xxhixx") → 1
R13_countHi("xhixhix") → 2
R13_countHi("hi") → 1

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

public int R13_countHi(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 Post-solution available

Copyright Nick Parlante 2017 - privacy