this is showing wrong answer but working fine on online ide.
Merge sorted linked list
Hey Aditya, your code will give the wrong output if length of a given array is 0. for eg.
input:
2
4
1 2 3 4
0
2
1 1
2
1 1
your code’s output :
1 2 2 3 4
1 1 1
but the expected output is :
1234
1111