Fork me on GitHub
摘要: Construct Binary Tree from Preorder and Inorder Traversal 从前序与中序遍历序列构造二叉树 通过preorder 和inorder,构造一棵二叉树 思路 问题不复杂,有了前序和中序,可以恢复一棵二叉树。 前序里面打头的肯定是root 中序里面的 阅读全文
posted @ 2021-04-28 10:33 WilliamCui 阅读(86) 评论(0) 推荐(0)