https://ide.codingblocks.com/s/62417
One of my test cases is giving wrong Anwer
Hi Anshu, there are 2 errors in your code:
- From Line 104 to Line 112 : temp node has to be worked upon and not root. So change every root to temp. Also in Line 106 it is NOT temp->hd instead it will be temp->left->hd. And similarly, in Line 111 it should be temp->right->hd.
- Check Line No. 88
Hope this helps