Merge k sorted array

not getting correct output

@guptashubham210a
You are taking a very complex approach. Simply insert all the elements in a priority_queue and print them out. You will receive your sorted array.

If my answer is able to answer your query, please mark the doubt as resolved.

@LP18Aug0068
but why I am not getting correct output?

@guptashubham210a
Will get back to you asap.