Merge Multiple Timestamp-Sorted Event Streams

Given k event streams, where each stream is sorted in non-decreasing timestamp order, implement an iterator that merges them into one globally chronological stream.

Each event is `[timestamp, paylo...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: