Track Scala
Scala track

Spiral Matrix

An exercise from the Scala track
medium

About this exercise

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

matrices
View all solutions