摘要: LeetCode 105.从前序与中序遍历序列构造二叉树 class Solution { public: int n; unordered_map <int ,int > mapp; //key是值,val是在inorder[]中的位置(下标) TreeNode* dfs(int rt,int l 阅读全文
posted @ 2021-11-05 19:37 killerboom 阅读(39) 评论(0) 推荐(1)