Practice · 3 of 5
Diagnose the planted bug
CHALLENGE
Difficulty: intermediate+25 XP
The method must return the index of the **first** occurrence of the maximum. It compiles and often looks right. Trace it by hand on {2, 9, 9} and {1, 3, 3, 3} before touching the code, then fix it minimally.
Press Submit to check your solution.
Back to lesson: Practice: Bootcamp drills