← Amazon questions

Find rank of every element in a stream

Filed under Amazon

Design a data structure that processes a continuous stream of numbers to support inserting new elements and querying the rank (number of elements less than or equal to the query value) of any element…

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.