← Questions

Spiral matrix

0
MetaMicrosoftCodingLast asked Apr 2026

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

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding