spiral matrix

From http://www.programcreek.com/2013/01/leetcode-spiral-matrix-java/. Print a matrix in spiral order.

My solution destroys the original matrix (makes it easy to handle matrixes that are not square), this would be a good idea to ask the interviewer if that's ok!

In Python:


	        

Leave a comment -

Elliot

https://www.emikek.com

I'm a .NET, PHP, Python, and Javascript developer. Also Project Manager, Scrum Master, and Juilliard trained violist. You cannot connect with me on Facebook, Twitter, or LinkedIn so don't ask.