Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Given a string, compute recursively (no loops) the number of times lowercase "hi" appears in the string.i was not clear on how to find the number of hi using recursion? please advise
countHi("xxhixx") → 1
countHi("xhixhix") → 2
countHi("hi") → 1
Join the community of 500,000 technology professionals and ask your questions.