标签: 数组

1 篇文章

48. 旋转图像—leetcode
class Solution: def rotate(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. 难点:会覆盖还未移动的值 """ # n = len(matrix) # if …