File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ https://leetcode-cn.com/problems/shift-2d-grid/description/
47
47
48
48
## 前置知识
49
49
50
- - 数组
50
+ - [ 数组] ( https://github.com/azl397985856/leetcode/blob/master/thinkings/basic-data-structure.md )
51
+ - 数学
51
52
52
53
## 暴力法
53
54
@@ -139,10 +140,22 @@ class Solution:
139
140
140
141
```
141
142
143
+ ** 复杂度分析**
144
+ - 时间复杂度:$O(N)$
145
+ - 空间复杂度:$O(1)$
146
+
142
147
## 相关题目
143
148
144
149
- [ 189. 旋转数组] ( https://leetcode-cn.com/problems/rotate-array/ )
145
150
146
151
## 参考
147
152
148
153
- [ 文科生都能看懂的循环移位算法] ( https://lucifer.ren/blog/2019/12/11/rotate-list/ )
154
+
155
+
156
+ 更多题解可以访问我的LeetCode题解仓库:https://github.com/azl397985856/leetcode 。 目前已经35K star啦。
157
+
158
+ 关注公众号力扣加加,努力用清晰直白的语言还原解题思路,并且有大量图解,手把手教你识别套路,高效刷题。
159
+
160
+
161
+ ![ ] ( https://tva1.sinaimg.cn/large/007S8ZIlly1gfcuzagjalj30p00dwabs.jpg )
You can’t perform that action at this time.
0 commit comments