Back to Questions

Spiral Matrix

75.3K viewsAsked at Uber
Medium

Question Explain

Given an $m \times n$ matrix, return all elements of the matrix in spiral order.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question
Spiral Matrix - Interview Question