Skip to main content

Practice · 3 of 5

One planted bug

CHALLENGE
Difficulty: intermediate+25 XP

aboveAvgPos has exactly one bug. Trace {1, 3, 4}: avg = 8/3 ≈ 2.67; qualifying = 3 and 4 → 2. The current code returns more. Find the divergent operator and repair it.

Back to lesson: Practice: FRQ debug lab