Track Prolog
Prolog track

Spiral Matrix

An exercise from the Prolog track
easy

About this exercise

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

View all solutions