Solution code related doubt

How below line invokes the level order input function

cin >> root;

Usually we do

Node *root = buildTree();

which in turn takes the input in level order

@abhi_11,
watch earier lecture he may have overloaded operator >> for taking input nothing else, u can do like u said also and actually thats how u ll be doing everytime
just for overloading concept he may have done that so dont worry

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.