Problem 1656 · Easy

Design an Ordered Stream

Insert values with ids that arrive out of order and release the consecutive run starting at the next expected id. The visual shows slots filling and a pointer advancing over the released block.

Open the interactive visualisation