add iterative post-traversal algorithm, tests passed.

This commit is contained in:
Shine wOng
2019-05-27 16:52:16 +08:00
parent 6f1f6d5af3
commit fd26fbb550
2 changed files with 28 additions and 0 deletions

View File

@@ -130,6 +130,8 @@ void test_postTraversal(){
root->postOrder_Re(Print<int>());
cout << endl;
root->postOrder_It(Print<int>());
cout << endl;
}
void test_levelTraversal(){