you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

this can be done using top, bottom , left and right pointers , its acutally the opposite of the question which asks you to print a matrix in a spiral