Skip to main content

Practice · 1 of 5

Repair the case split

CHALLENGE
Difficulty: intermediate+25 XP

median swaps its parity branches. Trace {1, 3, 8} (odd → 3.0) and {1, 2, 3, 10} (even → 2.5) against the code, find the first divergence, and swap the branches — nothing else.

Back to lesson: Practice: FRQ debug lab