Spiral Matrix Traversal

Watch spiral matrix traversal step by step. Follow the shrinking boundaries and see how each row and column contributes to the output.

Step 0 / 16
500 ms
1
2
3
4
12
13
14
5
11
16
15
6
10
9
8
7

Traversal path will appear here...