Spiral Traversal of Matrix
Tue Feb 08 2022 07:45:27 GMT+0000 (Coordinated Universal Time)
Saved by @Uttam #java #gfg #geeksforgeeks #lecture #2d #array #matrix #spiraltraversal
Input : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Output : 1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10 Input : 1 2 3 4 5 6 Output : 1 2 3 6 5 4 Input : 10 20 30 Output : 10 20 30 Input : 10 20 30 Output : 10 20 30
Comments