zhitongguigu
Lecture 1:
To do: (117? 199)
Using Morris Traversal, we can traverse the tree without using stack and recursion. The idea of Morris Traversal is based on Threaded Binary Tree. In this traversal, we first create links to Inorder successor and print the data using these links, and finally revert the changes to restore original tree.
numerical_limits<int>::min() <==> INT_MIN
To do: (117? 199)
Using Morris Traversal, we can traverse the tree without using stack and recursion. The idea of Morris Traversal is based on Threaded Binary Tree. In this traversal, we first create links to Inorder successor and print the data using these links, and finally revert the changes to restore original tree.
numerical_limits<int>::min() <==> INT_MIN
Comments
Post a Comment