I am not able to understand that how to build the tree from given input format. Please tell how we can build tree from the given input format
Find sum at level k
Hey @krikhi
Here is the logic code for tree input https://ide.codingblocks.com/s/181088?_ga=2.65194156.386387732.1581182555-890245095.1579188087
If your doubt is resolved please mark it as closed.
can u please write the code in c++ as i am not familiar with java
@krikhi I’m not allowed to share code with you. The best way to learn is to write code yourself so we want you to try to write the code then we can help you with the errors. Atleast try it once then I’ll fix the error if there is any.
Sorry for the inconvenience, But I am not asking for the entire code. I am not able to build the tree from the given input format. please help me in building the tree only from the input format as specified in the question
Hey @krikhi. No inconvenience. Happy to help you. Here is the input code https://ide.codingblocks.com/s/186233.
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.