Skip to main content

Practice · 3 of 4

Fix: last-index search

CHALLENGE
Difficulty: advanced+25 XP

The method should return the **last** index where target appears, or -1. It sometimes returns -1 even when the target is present late in the array. Find and fix the bug.

Back to lesson: Practice: Debug gauntlet: one bug each