Rotate Matrix 90°
Medium · rating 1450 · Matrix, Implementation
The first line contains n. The next n lines each contain n integers. Print the matrix rotated 90° clockwise, one row per line.
Constraints: 1 ≤ n ≤ 500
Related problems
- Spiral Order — Medium
- Credit Card Validation — Medium
- Rotate Array Right — Medium
- Run-Length Decode — Medium
- Shift Duration — Medium
- Heaviest Row — Medium