Operator overloading of >>

Here sir always use cin>> to take binary tree but there is no lecture of overloading of >>. Is sir here take level order traversal or preorder.

Hello @asif_h could you please elaborate your doubt?

it is the syntax for taking input in c++.
and for level order or preorder it depends on the input format like in which format the input is given.

In lecture of finding lowest common ancestor ,in funcn main() sir always use cin>>root; to take binary tree .But how sir overload operator >> is not in lecture.

@asif_h he is just taking input root must be any variable.there is no concept of overloading in this.
if your doiubt is still nit cleared you can share the screenshot where you are asking.

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.