Given n sorted arrays, devise an efficient solution to merge them in to one list. An example would be:
[1,8,19,42] [4,5,6,20] [10,21,40,44] Result: [1,4,5,6,8,10,19,20,21,40,42,44]
Given n sorted arrays, devise an efficient solution to merge them in to one list. An example would be:
[1,8,19,42] [4,5,6,20] [10,21,40,44] Result: [1,4,5,6,8,10,19,20,21,40,42,44]
Permalink: http://problemotd.com/problem/n-array-sort/
Content curated by @MaxBurstein
Comments:
Anonymous - 9 years, 8 months ago
reply permalink
Anonymous - 9 years, 8 months ago
C#
reply permalink
Anonymous - 9 years, 8 months ago
Generic Version of the method
reply permalink