摘要: 来源:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal Java Python 阅读全文
posted @ 2017-09-17 16:10 HitAnyKey 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 先序遍历(Preorder Traversal) 根-左-右 1. 递归 Java 1 /** 2 * Definition for a binary tree node. 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * 阅读全文
posted @ 2017-09-17 11:19 HitAnyKey 阅读(225) 评论(0) 推荐(0) 编辑