From: Lee Hinman Date: 2009-06-15T06:47:22+09:00 Subject: Re: Matrix Rotator (#209) >> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- >> ## 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 (different) solution, rather manual this way. http://pastie.org/511889 - Lee