← Questions
Track missing package IDs from out-of-order arrivals
0
I was asked this
No reports yet. Sign in to say where you were asked it.
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.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Sign in to submit your code; every attempt is kept here.
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
