Merge k sorted array

in the video lecture

please explain that how the comparision is happening

@sk3657860 hey we have taken priority queue or minimum heap and it always give smaller element on top of it,so we push first element of each array in pq,then we extract the top and push in result and push the next element of extracted element in priority queue again.

in custom pair how the comparing is occuring
that i want
please explain it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.