Practice · 1 of 1
The Minimal Repro
CHALLENGE
Difficulty: advanced+25 XP
A field incident: lastUnique was reported to return the wrong element. The contract: return the last value that appears exactly once (nullopt when none). Implement it correctly — the graded tests encode both the reported failure and the general contract.
Press Submit to check your solution.
Back to lesson: Practice: Practice: Minimal Repro & Repair