not getting correct output
Merge k sorted array
@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.