Practice · 2 of 4
Parameter passing trace
CHALLENGE
Difficulty: intermediate+25 XP
Trace run(5) by hand: shift doubles its parameter and returns v - 1, but the first call's result is **discarded**. Predict run(5), then implement run so the tests pass — the buggy instinct is to think the discarded call changed v.
Press Submit to check your solution.
Back to lesson: Practice: Tracing lab