First Missing Positive — Cyclic Sort & Index Tricks

From a messy list of ticket numbers with zeros, negatives and repeats, find the lowest positive ticket number that never appears.

Cyclic Sort & Index Tricks · Hard

More in Cyclic Sort & Index Tricks

All algorithm problems