Print two-dimensional array in spiral order

Posted by Rahul Vyas on Stack Overflow See other posts from Stack Overflow or by Rahul Vyas
Published on 2009-04-07T17:23:32Z Indexed on 2010/04/17 12:43 UTC
Read the original article Hit count: 364

Filed under:
|
|

How do I print a 5×5 two-dimensional array in spiral order?

Is there any formula so that I can print an array of any size in spiral order?

© Stack Overflow or respective owner

Related posts about math

Related posts about language-agnostic