Skip to content

Commit 3d59f11

Browse files
authored
Update Rotate Image.py
1 parent b9cab61 commit 3d59f11

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

2D Marrix/Rotate Image.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
class Solution:
22
def rotate(self, matrix: List[List[int]]) -> None:
3-
"""
4-
Do not return anything, modify matrix in-place instead.
5-
"""
3+
64
for i in range(0,len(matrix[0])):
75
for j in range(i,len(matrix)):
86
matrix[i][j],matrix[j][i]=matrix[j][i],matrix[i][j]
@@ -17,4 +15,4 @@ def rotate(self, matrix: List[List[int]]) -> None:
1715

1816

1917

20-
18+

0 commit comments

Comments
 (0)