Track Rust
Rust track

Spiral Matrix

An exercise from the Rust track
medium

About this exercise

Given the size, return a square matrix of numbers in spiral order.

matrix
nested structures
View all solutions