Skip to main content
Loading page content
Spiral Traversal
medium
T: O(rows * cols)
S: O(1)
Inspect
Quiz
Practice
R:
4
C:
4
Random
Sorted
Vals(16):
Set
State:
Current cell
Visited cell
Matrix cursor
Search target
Compared cell
Found cell
Swapped cells
Search success
Search miss
No element state is highlighted for this setup step.
Loading visualizer…
0.25x
0.5x
0.75x
1.0x
2.0x
0.25x
0.5x
0.75x
1.0x
2.0x