I have done this question with array but how to do this with list using priority queue
plz provide easy sol
How to approach this problem with list
hi @mahroosanwar0901_2642b14836027bbf,
refer https://www.geeksforgeeks.org/merge-k-sorted-linked-lists-set-2-using-min-heap/
hey please how to take k no of list as input i lost in this
coding block ide not saving code so i paste here
thanks so much you can mark as resolved
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.