Given a stream of people arriving sequentially, each wearing a t-shirt of a color represented by an integer from 1 to N, find the first person (or color) who wears a globally unique color across the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.