Please help it not accepting the all tc

@kailash_01 your code is giving “true” as output no matter what, you can dry run for different inputs. If you are unable to debug on your own I’ll be happy to help!

i tried but can not able to find but i think my code is correct.

@kailash_01 line 45 you are checking for root2 twice. change it to if(root1==NULL && root2==NULL)