Skip to main content

Checkpoint: trace, then predict

Challenge on lesson: Checkpoint: trace like the exam

CHALLENGE
Difficulty: intermediate+25 XP

Trace mystery by hand for n = 7 (a state table for i and out helps). The method is already correct โ€” your job is to **predict** what mystery(7) returns and what mystery(0) returns, then encode exactly that behavior by implementing mystery yourself from the trace rules.

Back to lesson: Checkpoint: trace like the exam