← Questions

Track missing package IDs from out-of-order arrivals

0
AmazonCodingLast asked Aug 2026

A coding interview question asked in Amazon's technical phone screen, last asked Aug 2026. It tests design, hash sets and streaming.

Packages have IDs 0, 1, 2, … and arrive in any order. Build a tracker that records each arrival and can say, at any time, how far the unbroken run of arrived IDs from 0 reaches, and which IDs below the highest one seen are still missing.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Technical phone screen · Last asked Aug 202660 min · Live coding in a shared editor that does not run code, plus Leadership Principles questions · No AI

What it tests

design · hash sets · streaming

Your code and the AI tutor open when you unlock this question.