Skip to main content
๐Ÿ“œ WAYPOINT LESSON

Checkpoint: recursive count

โญ beginnerโณ 25 min read๐Ÿ“ Lesson 56 of 256

Index-based string recursion with a counting accumulator in the return.

This checkpoint's pattern โ€” recurse on the index, add 1 conditionally in the return expression โ€” is the exact shape of several released exam recursion items. Get the empty-remainder base case right and the rest is arithmetic.