← Amazon questions

First person to wear a unique color

Filed under Amazon

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.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.