fancycarp
fancycarp
全部文章
分类
题解(44)
归档
标签
去牛客网
登录
/
注册
fancycarp的博客
全部文章
(共1篇)
NC136 #输出二叉树的右视图#
先重构二叉树,后层次遍历。 class Solution { public: unordered_map<int, int> index; TreeNode* rebuild(vector<int>& pre, int pre_left, int pr...
DFS
递归
栈
队列
层次遍历
2021-05-12
0
439