...matrix[j]
matrix[n - j - 1], matrix[n - i - 1][j] = matrix[n - i - 1][j], matrix[n - j - 1]
matrix[n - i - 1][j], matrix[j] = matrix[j], matrix[n - i - 1][j]
```
**Time Complexity:** O(n^2)
**Space Complexity:** O(1)
## Hashtags
* #LeetCode
* #Python
* #Array
* #Matrix
*...