The second testcase is giving wrong answer. Pls check the code.
Merge k sorted arrays heap
Hello @urvigoel26,
Your code is not working for the testcases like:
2 4
1 6 7 8
5 2 3 4
Your Output:
1 5 2 3 6 7 2147483647 2147483647
Expected output:
1 2 3 4 5 6 7 8
Hope, this would help.
Give a like, if you are satisfied.
1 Like