Track Kotlin
Kotlin track

Spiral Matrix

An exercise from the Kotlin track
medium

About this exercise

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

arrays
integers
loops
matrices
View all solutions