here is my code - “https://ide.codingblocks.com/s/102311”
Why am i getting wrong answer? what's wrong in my code?
I have modified your code now. Try to submit it.
thanks but i now also can not able to know that what’s wrong in my code?
There were 2-3 errors in your code, Firstly, you need to initialise next pointer with Null, in the node class, Secondly in the merge function, instead of using if else, you need to use only if. and instead of long long , I have used only int. Tht were changes i made in your code.