Skip to content
ı
Workspace
Visualizer
Search anything…
⌘ K
Desk
Path
Problems
Review
More
Library
/
Matrix Spiral Traversal
matrices
Best
O(m · n)
Avg
O(m · n)
Worst
O(m · n)
Space
O(1)
Preparing Matrix Spiral Traversal...
Traverses a 2D matrix in spiral order using top, bottom, left, and right boundary pointers.