Skip to main content

Practice · 4 of 5

Fix the poisoned base

CHALLENGE
Difficulty: intermediate+25 XP

pow2(4) returns 0 — every value multiplies down to the broken base case. Trace pow2(1) and pow2(0) by hand, then repair the base value.

Back to lesson: Practice: Recursion lab