You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output 1,2,3,4,... will only appear if we travers the tree in-order. Otherwise, the numbers might appear random. It would worth pointing that out in the description of the task.