LeetCode145. 二叉树的后序遍历

给定一个二叉树,返回它的 后序 遍历。 示例:node 输入: [1,null,2,3] 1 \ 2 / 3 输出: [3,2,1] 思路1:递归 遍历左子树; 遍历右子树; 访问根节点; ArrayList中addAll(指针); 代码: /** * Definition for a binary tree node. * public clas
相关文章
相关标签/搜索