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

hello @tharun
what else information is given for tree construction

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.

image

logic is exaclty same as level order traversal