Checked the code logic and it seems fine to me. Is it due to some issue in input and output format?
please check the code:
Checked the code logic and it seems fine to me. Is it due to some issue in input and output format?
please check the code:
@PThak2018 yes bro apka logic sahi hai ,there is problem in building tree,check the input format again please.
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.