please correct my code and debugg and send it
Please help to correct my code
Harshita pls send the complete code …as your code only has buildtree function mainly …
Hello @harryson,
As @yuktimutreja01 has mentioned your code is incomplete.
You are just calculating the difference in the height of left and right subtree for each node and returning it.
This is the logic you are required to use for this problem.
You can refer to the following code to understand the usage of this logic in this problem:
Let me know if you still face any issue.
Give a like if you are satisfied.
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.