← Questions

Track missing package IDs from out-of-order arrivals

0
AmazonCodingLast asked Aug 2026

Packages with IDs 1, 2, 3, ... arrive in any order. Support recording an arrival, reporting the contiguous frontier (the largest ID such that every ID up to it has arrived), and listing the IDs still missing.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding