Leetcode 48. Rotate Image 题目 解法: follow up1: 逆时针旋转90度 follow up 2:旋转180度 题目 解法: 先transpose,然后把每行reverse class Solution: def rotate(self, matrix: List[List[int]]) -> None: """ Do not return anything, modify matrix in-place instead. """ n = len(matrix) # transpose for i in range(n): for j in range(i,n): matrix[i][