🎉 Exercism Research is now launched. Help Exercism, help science and have some fun at research.exercism.io 🎉
Track JavaScript
JavaScript track

Spiral Matrix

An exercise from the JavaScript track
medium

About this exercise

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

arrays
matrices
conditionals
loops
data structures
View all solutions