File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 32
32
- DFS
33
33
- [ 动态规划] ( https://github.com/azl397985856/leetcode/blob/master/thinkings/dynamic-programming.md )
34
34
35
- - 动态规划
36
-
37
35
## 公司
38
36
39
37
- 阿里
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ class Solution:
92
92
- 时间复杂度:平均 $O(logN)$,最坏的情况是 $O(N)$
93
93
- 空间复杂度:我们使用了 parent, 因此空间复杂度为 $O(N)$
94
94
95
- 欢迎关注我的公众号《脑洞前端》获取更多更新鲜的 LeetCode 题解
95
+ ## 相关专题
96
96
97
- ![ ] ( https://tva1.sinaimg.cn/large/007S8ZIlly1ghlu4wfjp9j31bi0hcq5s.jpg )
97
+ - [ 并查集专题] ( https://github.com/azl397985856/leetcode/blob/master/thinkings/union-find.md )
98
+
99
+ 大家对此有何看法,欢迎给我留言,我有时间都会一一查看回答。更多算法套路可以访问我的 LeetCode 题解仓库:https://github.com/azl397985856/leetcode 。 目前已经 36K star 啦。
100
+ 大家也可以关注我的公众号《力扣加加》带你啃下算法这块硬骨头。
101
+ ![ ] ( https://tva1.sinaimg.cn/large/007S8ZIlly1gfcuzagjalj30p00dwabs.jpg )
Original file line number Diff line number Diff line change @@ -100,7 +100,10 @@ BFS 的关键点在于如何记录每一层次是否遍历完成, 我们可以
100
100
101
101
4 . 如果不为 null,说明这一层还没完,则将其左右子树依次入队列。
102
102
103
- 相关问题[ 102.binary-tree-level-order-traversal] ( ../problems/102.binary-tree-level-order-traversal.md )
103
+ 相关问题:
104
+
105
+ - [ 102.binary-tree-level-order-traversal] ( ../problems/102.binary-tree-level-order-traversal.md )
106
+ - [ 117. 填充每个节点的下一个右侧节点指针 II] ( https://leetcode-cn.com/problems/populating-next-right-pointers-in-each-node-ii/ )
104
107
105
108
## 双色标记法
106
109
You can’t perform that action at this time.
0 commit comments