Skip to content

Commit 08b709b

Browse files
authored
Update 18. 旋转图像.md
1 parent 6c3371a commit 08b709b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

18. 旋转图像.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
**给定一个 n × n 的二维矩阵 matrix 表示一个图像。请你将图像顺时针旋转 90 度。你必须在 原地 旋转图像,这意味着你需要直接修改输入的二维矩阵。请不要 使用另一个矩阵来旋转图像。**
22

3-
![algo8](./images/alg8.jpg)
3+
![algo8](./images/algo8.jpg)
44

55
```
66
输入:matrix = [[1,2,3],[4,5,6],[7,8,9]]
@@ -31,4 +31,4 @@ class Solution:
3131
Do not return anything, modify matrix in-place instead.
3232
"""
3333
matrix[:] = list(map(lambda x: x[::-1], zip(*matrix)))
34-
```
34+
```

0 commit comments

Comments
 (0)