Programming Challenge: Merge an arbitrary number of arrays in sorted order.

Emerald_Knight
2018-09-07T00:30:34Z

It looks like it's been over a week and a half since our last coding challenge, so let's get one going. This challenge is a relatively simple one, but it's complex enough that you can take a variety of different approaches to it.

As the title suggests, write a program that accepts an arbitrary number of arrays, in whatever form or manner you see fit (if you want to e.g. parse a potentially massive CSV file, then go nuts!), and returns a single array containing all of the elements of the other arrays in sorted order. That's it!

Bonus points for creative, efficient, or generalized solutions!

Comments URL: https://tildes.net/~comp/628/programming_challenge_merge_an_arbitrary_number_of_arrays_in_sorted_order

Votes: 24

Comments: 26