2 testcases are wrong please help

My code: https://ide.codingblocks.com/s/654333

hi @mitrapranav0027_5d705c8b616e0add
U have to print the nodes in sorted order… so use a vector/array to store the nodes, then sort them and print… if no node is present then u will have to print 0…
Refer this code -->

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.