Level order input

I,m not able to take level order input in binary tree.
Can you please help me with this ??

Hey @Krishna-Kumar-1362299170640596
Level order input is taken and tree is build by using the queue, in which firstly u will take a queue of nodes, and then it will have a data which will represent a root node, and then u will accept the left and right child of root node, -1 value means that the node does not have any child.

U can refer to this code for your help(it contains the function for level order input) :smiley:

@Krishna-Kumar-1362299170640596 i hope your doubt is cleared dont forget to mark it resolved
in the my doubts section :smiley:

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.