My code is failing one test case?

@isingh this code is not complete please send the correct code.

Can you check my code now, I have uploaded the complete code

@isingh in line 59 you have to compare pr.first and pl.first for heights, you are comparing pl.second and pr.second which will be either 0 or 1 hence the answer is being returned as true for all the nodes. https://ide.codingblocks.com/s/604254

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.