Refer the below diagram and identify the problem.
(A)
Normal traversal of the matrix.
(B)
Row-wise traversal of the matrix.
(C)
Column-wise traversal of the matrix.
(D)
spiral traversal of the matrix.
Answer: (D)
Explanation:
The image is for the spiral traversal of the matrix.
Refer the below article:
https://www.geeksforgeeks.org/print-a-given-matrix-in-spiral-form/amp/
Hence Option (D) is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles