The following code is giving run error for 3/4 test cases but working fine for all the other, please tell me my mistakes.
Code giving run error please check
@namangarg2000 corrected runtime
no need for findnode removed it .
and you have to print in sorted order ( wrong answer coming for that only)
still giving 2 test cases as wrong answers
@namangarg2000
i wrote this above
and you have to print in sorted order ( wrong answer coming for that only)
store in vector sort and print
if v.size()==0 cout 0
print all the nodes in sorted order??
still failing 1 test case, even added a check for a non existing nodes. https://ide.codingblocks.com/s/294539 please check