Solution: Merge a Number of Sorted Arrays
This review discusses the solution of the Merge Sorted Arrays challenge in detail.
We'll cover the following...
We'll cover the following...
Solution # 1
A naive solution to this problem is to append all the k arrays one after another in the output  array and sort the output array using the std:: sort() function.
Time Complexity
Appending k sorted arrays into one output array would take . Since std::sort() runs in  and the size of the output array is  ...