>_
rotate.rs
Rust 1.98
Not run yet

+ 6 hidden

Input
matrix = [[7, 1, 4], [3, 9, 2], [5, 8, 6]]
Expected
[[5, 3, 7], [8, 9, 1], [6, 2, 4]]

The first column read bottom to top, 5, 3, 7, becomes the first row. The centre 9 stays where it is.