If I have to check for root true and false for root node also, then i can easily take input. But here we are not checking for root node. We are checking for further nodes.
I am not able to take input
You can pass “true” for the root node from the main function itself.
@raj.verma5454 https://ide.codingblocks.com/s/215205 i added the build function and a print function to test it, have a look.
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.