2021年5月29日

摘要: 地址 https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ 根据一棵树的前序遍历与中序遍历构造二叉树。 注意: 你可以假设树中没有重复的元素。 例如,给出 前序遍历 pr 阅读全文
posted @ 2021-05-29 10:56 itdef 阅读(76) 评论(0) 推荐(0) 编辑
摘要: https://leetcode-cn.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/ 根据一棵树的中序遍历与后序遍历构造二叉树。 注意: 你可以假设树中没有重复的元素。 例如,给出 中序遍历 inor 阅读全文
posted @ 2021-05-29 09:57 itdef 阅读(62) 评论(0) 推荐(0) 编辑

导航