Spiral Matrix is a Matrix in the form of incrementing numbers in Spiral Form. This Spiral matrix is Designed using C++.
Spiral Matrix is a Matrix in the form of incrementing numbers in Spiral Form. This Spiral matrix is Designed using C++.
Below Spiral matrix 6 * 4-dimensional matrix.
Spiral matrix:
1 2 3 4 5 6 D
R 16 17 18 19 20 7 D
U 15 24 23 22 21 8 D
U 14 13 12 11 10 9 L
Directions of icrementing numbers:
* D denotes Down
* L denotes Left
* R denotes Right
* U denotes Up
Submitted by Sandhya yegireddi (sandhya)
Download packets of source code on Coders Packet
Comments