leet-code/src/main/java/leetcode/editor/cn/BinaryTreePostorderTraversal.md
2021-04-29 23:21:52 +08:00

442 B

给定一个二叉树,返回它的 后序 遍历。

示例:

输入: [1,null,2,3]  
   1
    \
     2
    /
   3 

输出: [3,2,1]

进阶: 递归算法很简单,你可以通过迭代算法完成吗?

Related Topics
  • \n
  • 👍 564
  • 👎 0