题目
My way
递归实现
1 | /** |
非递归手动压栈+逆序输出
1 | /** |
非递归手动压栈 + 辅助变量判断右孩子是否访问过
1 | /** |
References
https://leetcode-cn.com/problems/binary-tree-postorder-traversal/solution/c-by-jjjjjz-2/
Just a Blog
1 | /** |
1 | /** |
1 | /** |
https://leetcode-cn.com/problems/binary-tree-postorder-traversal/solution/c-by-jjjjjz-2/