Files
screwed/sorting
2015-03-09 22:07:26 -07:00
..
2015-03-09 22:07:26 -07:00
2015-03-09 20:58:37 -07:00
2015-03-09 20:58:37 -07:00

Question

You have n streams of sorted object, create a function that will merge them in a sorted steam.

example

The 3 bellow sorted streams

  • [1, 4, 6, 7, 7, 10, ...
  • [0, 5, 8, 10, ...
  • [5, 6, 10,...

Should output [0, 1, 4, 5, 5, 6, 6, 7, 7, 8, 10, 10, 10, ...