Skip to main content

Checkpoint: trace a recursive call

Challenge on lesson: Checkpoint: frames all the way down

CHALLENGE
Difficulty: intermediate+25 XP

Trace f(5) frame by frame: f(5) → f(3) → f(1) → f(-1). Predict the return value by hand, then implement f yourself from the trace (same shape, your own lines).

Back to lesson: Checkpoint: frames all the way down