program for spiral matrix in java
Answers
Answered by
2
Answer:
The Spiral Matrix problem takes as an input a 2-Dimensional array of N rows and M columns and prints the elements of this matrix in spiral order. The spiral begins at the top left corner of the input matrix and prints the elements it encounters while looping towards the center of this matrix in a clockwise manner
Similar questions
India Languages,
1 month ago
English,
1 month ago
Biology,
3 months ago
English,
9 months ago
Math,
9 months ago