You are viewing a single comment's thread. Return to all comments →
according to the sample output for 002 it is:
2 9 6 4 1 3 7 5 11 8 10
But the bottom of the left branch is 9. I don't uderstand why 2 is printed first.
Seems like cookies are disabled on this browser, please enable them to open this website
Swap Nodes
You are viewing a single comment's thread. Return to all comments →
according to the sample output for 002 it is:
2 9 6 4 1 3 7 5 11 8 10
But the bottom of the left branch is 9. I don't uderstand why 2 is printed first.