I am facing problem in the fact of deciding the structure of the node class for each question to suit its needs and also the fact that the process of building tree is varying from qstn to qstn.
Regarding tree building for diff qstns
Hello @Senjuti256 yes you can face problem in building tree in starting but once you will get idea it will be cake walk for you.
in this question also you are facing the problem in building the tree?
Like here i had to incorporate the no. of children in the node structure itself.How to understand these things
@Senjuti256 here you will check if the number of children are 2 then you will join the left child and the right child and if the number of child is 1 then you will only join at left and otherwise NULL.
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.