Skip to main content

Practice ยท 1 of 1

The Minimal Repro

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.

Difficulty: advanced

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