Is Balanced tree issue

1/4 test case didn’t pass. Can you point out the mistake?

@Ankit05 save your code on ide and then share it here you can save your code in cb.lk/ide copy your code first then press save on top it generate url that url you have to share.

@Ankit05 hey ankit your code is giving wrong output for test like
50 true 12 true 18 false false false false
your output is
true
but expected output should be
false

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.