TweakCode
Recursion lessons
Loading editor…
Test casesRun to compare output
Inputn = 1, k = 1
Expected0
Output—

More practice

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