TweakCode
Recursion lessons
Loading editor…
Test casesRun to compare output
Inputn = 2
Expected1
Output—

More practice

Same technique, different problems. Try them without the walkthrough.