Skip to main content

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.

Back to lesson: Practice: Practice: Minimal Repro & Repair