Skip to content

Commit 746d6dd

Browse files
author
lucifer
committedNov 23, 2020
2 parents 984af90 + 1d27d31 commit 746d6dd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
 

‎problems/108.convert-sorted-array-to-binary-search-tree.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Solution(object):
172172
**复杂度分析**
173173

174174
- 时间复杂度:$O(N)$
175-
- 空间复杂度:隐式调用栈的开销为 $O(N)$
175+
- 空间复杂度:由于是平衡二叉树,因此隐式调用栈的开销为 $O(logN)$
176176

177177
更多题解可以访问我的 LeetCode 题解仓库:https://github.com/azl397985856/leetcode 。 目前已经 37K star 啦。
178178

‎thinkings/bit.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,12 @@ class Solution:
192192

193193
## 相关题目
194194

195-
- [number-of-1-bits](https://leetcode-cn.com/problems/number-of-1-bits/)
196-
- [counting-bits](https://leetcode-cn.com/problems/counting-bits/)
197-
- [reverse-bits](https://leetcode-cn.com/problems/reverse-bits/)
195+
- [190. 颠倒二进制位](https://leetcode-cn.com/problems/reverse-bits/)(简单)
196+
- [191. 位1的个数](https://leetcode-cn.com/problems/number-of-1-bits/)(简单)
197+
- [338. 比特位计数](https://leetcode-cn.com/problems/counting-bits/)(中等)
198+
- [1072. 按列翻转得到最大值等行数](https://leetcode-cn.com/problems/flip-columns-for-maximum-number-of-equal-rows/)(中等)
198199

199200

200-
更多题解可以访问我的LeetCode题解仓库:https://github.com/azl397985856/leetcode目前已经30K star啦。
201+
更多题解可以访问我的LeetCode题解仓库:https://github.com/azl397985856/leetcode目前已经38K star啦。
201202

202203
关注公众号力扣加加,努力用清晰直白的语言还原解题思路,并且有大量图解,手把手教你识别套路,高效刷题。

‎thinkings/island.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ for i in range(M):
6666
## 相关题目
6767

6868
- [200. 岛屿数量](https://github.com/azl397985856/leetcode/blob/master/problems/200.number-of-islands.md)
69-
- [695. 岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island/solution/695-dao-yu-de-zui-da-mian-ji-dfspython3-by-fe-luci/)
69+
- [695. 岛屿的最大面积](https://leetcode-cn.com/problems/max-area-of-island/solution/695-dao-yu-de-zui-da-mian-ji-dfspython3-by-fe-luci/)(字节跳动原题)
7070
- [1162. 地图分析](https://leetcode-cn.com/problems/as-far-from-land-as-possible/solution/python-tu-jie-chao-jian-dan-de-bfs1162-di-tu-fen-x/)
71-
- 463. 岛屿的周长
71+
- 463.岛屿的周长
7272

7373
上面四道题都可以使用常规的 DFS 来做。 并且递归的方向都是上下左右四个方向。更有意思的是,都可以采用原地修改的方式,来减少开辟 visited 的空间。
7474

0 commit comments

Comments
 (0)