Spiral Matrix
Understand and solve the interview question "Spiral Matrix".
We'll cover the following
Description
Given an m * n
matrix, you have to return all the matrix elements in spiral order. The spiral order
signifies traversing the matrix in clockwise order.
Let’s review the spiral
order below:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.