Design an Ordered Stream

Asked at Bloomberg · Coding & Leetcode-style Questions · Difficulty: Easy

Design a data structure `OrderedStream` that receives **n** unique pairs **(id, value)** where **id** is in **[1, n]**.

Loading the problem…