correct sequence of cells in a 5*5 matrix that should be displayed for spiral traversing animation
Answers
Answered by
0
Answer:
25
Explanation:
I THINK ITS 25 MATRIX
Answered by
0
Answer:
0 1 2 3 4 9 14 19 24 23 22 21 20 15 10 5 6 7 8 13 18 17 16 11 12
Explanation:
The correct sequence of cells to be displayed in spiral traversing is written above.We have the matrix with the sequence:-
0 1 2 3 4
5 6 7 8 9
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
The spiral traversing means we have to first print the outermost elements of the matrix then go inwards like a spiral.
Similar questions