Merge k sorted arrays

wrong output

Hello @ayu2321,

Cross verify your code with the following:

Let me know if you still can’t find the error, i’ll correct your code.

Hello @ayu2321,

I have corrected the code:

Hope, this would help.
give a like if you are satisfied.

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.