Merge K Sorted Arrays

Please explain where is the mistake…

hello @Karanveer
image
here it should be pair.

https://ide.codingblocks.com/s/294299 The code is working now but it is giving wrong output…

pls mention input as well(what input u r giving)

The input is already initialised in the main function

image
ur comparator should look like this (for min heap)

1 Like