bugl
Home
Learn
Patterns
Paths
Search
Premium
Auto
Home
Learn
Patterns
Paths
Medium
Math & Geometry
LC 54
Spiral Matrix
Given an m x n matrix, return all elements of the matrix in spiral order.
Asked at 24 companies
Adobe
Amazon
Apple
+21 more
Hints
1.
Think about what data structure fits Spiral Matrix
2.
Consider the brute force complexity and how to optimize
3.
Can you trade space for time?
Start Puzzle
LeetCode
NeetCode