https://ide.codingblocks.com/s/124254 .testcase 2 is failing please tell the error
Wrong answer tree right view
you are not constructing your tree properly check the code for tree construction
please tell whats the error in the code
Construct your tree for any random input and display it so that you can see your mistake
i am not able to diagnose the problem even after taking random input. please correct the same and give the correct code.
while creating right child
you have written fn.left,that is in correct
just change fn.left to fn.right
i hope this would help
@vaibhavgupta.1919
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.