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…
More Bloomberg interview questions
- Streaming Social-Media Mentions and Aggregation
- Real-time Market Data Distribution System
- Trade Processor with Subscribe / Unsubscribe
- Flatten a Multilevel Doubly Linked List
- Matchsticks to Square Transform
- Train a Next-Word Predictor from Tokenized Sentences