could you provide the code for how to construct a tree for given inorder traversal
Could you provide the code for how to construct a tree for given inorder traversal
I am asking for the question called “right view of tree” which is given in challenges of binary trees in launchpad course
ok , so there input is given in level order format.
this is the code for building tree from level order format.

logic is exaclty same as level order traversal