DSA Master
Home
Problems
123
Schedule
17 Patterns
Data Structures
PDF Guide
Back to Problems
Mark as Complete
Spiral Matrix
#54
Medium
Array & Hashing
O(m*n)
O(1)
Amazon
Google
Meta
View on LeetCode
Description
Approach
Solution
Related
Problem Description
Given an m x n matrix, return all elements of the matrix in spiral order.