摘要: 题目链接:https://leetcode cn.com/problems/construct binary tree from preorder and inorder traversal/ 根据前序遍历和中序遍历构造二叉树 思路: 1. 根据前序遍历确定根结点,哈希根节点的值,得到中序遍历下标。 阅读全文
posted @ 2020-05-22 21:14 火车不是推的 阅读(119) 评论(0) 推荐(0) 编辑