From: Sanjay Sharma Date: 2009-06-15T02:35:22+09:00 Subject: Re: Matrix Rotator (#209) Daniel X Moore wrote: > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > ## Matrix Rotator (#209) > > Здравствуйте Rubyists, > > This week's quiz is write ruby method that will rotate a matrix 90 > degrees counter-clockwise (or π/2 radians). > > Ex: > 0 0 0 0 > 0 X 0 0 > X X X 0 > 0 0 0 0 > > 0 0 0 0 > 0 0 X 0 > 0 X X 0 > 0 0 X 0 > > > -- > -Daniel > http://rubyquiz.strd6.com > > P. S. This may come in handy on a future quiz. Here's my solution; not too savvy but I guess kinda OK given that I've recently started with Ruby. :-) http://pastie.org/511668 -- Posted via http://www.ruby-forum.com/.