Consider n elements that are equally distributed in k stacks. In each stack, elements of it are arranged in ascending order (min is at the top in each of the stack and then increasing downwards). Given a queue of size n in which we have to put all n elements in increasing order. What will be the best algorithm and their time complexity?
I think Merge sort is best algorithm, O(n log logk)
Am I right or wrong?