#54

Spiral Matrix

medium· Math & Geometryruns: 0

Given an m x n matrix, return all elements of the matrix in spiral order, starting from the top-left corner and proceeding clockwise.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.