solulubeta
Sign in
NeetCode 150 / Math & Geometry
17.02 · Problem

Spiral Matrix

Medium Shrinking boundaries 1 video LC 54 Pro

This problem is part of solulu Pro

Return all elements of an m × n matrix in spiral order: along the top row, down the right column, back along the bottom row, up the left column, then inwards.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 137 of 150 · updated 2026-10-13