Problem bank

Problem 241 of 333MediumCodingP241

Merge sorted tick feeds

  1. You receive kk exchange feeds, each a list of trade timestamps already sorted in increasing order. Merge them into one sorted list. With NN ticks in total, beat the O(Nlog⁡N)O(N \log N) cost of concatenating and sorting.