AlgoMaster Logo

Spiral Matrix

matrix=[[1,2,3],[4,5,6],[7,8,9]]
0 / 31
algomaster.io
Step:Start: Traverse the matrix in spiral order by simulating the walk