Archived

rotate a 2d array

An old note — I haven't updated it since I wrote it.

Problem from the book 'Elements of Programming Interviews in Python'. It actually turns out there is a much smarter way of doing this.

See: matrix clockwise rotation