Fork me on GitHub
摘要: Binary Tree Preorder Traversal二叉树的前序遍历 给一个root,返回前序遍历 前序遍历: 根->左->右 递归方法 public void preorder(TreeNode root,List<Integer> res){ if(root == null){ retu 阅读全文
posted @ 2021-04-20 16:56 WilliamCui 阅读(82) 评论(0) 推荐(0)