Which possibility am I missing?
TestCase 3 is showing wrong answer.
IsBalanced(Binary Tree)
@anushkasharma1108
The problem is not with your checking balanced code but rather with your input function. You cannot take a boolean data type as input like that. It wouldn’t work. I’m sharing my input function here. Use it in your code and make the according changes.
Input function code - https://ide.codingblocks.com/s/101774
Got it!! Thanks! 