First Unique Number
Maintain a growing queue of integers and, on request, report the earliest value that has so far appeared exactly once, or -1 when every value is repeated.
Maintain a growing queue of integers and, on request, report the earliest value that has so far appeared exactly once, or -1 when every value is repeated.