From: Ragunathan Pattabiraman Date: 2008-06-20T13:54:24+09:00 Subject: Re: little problem (google hiring puzzle) > > There's a very simple solution (which I think someone has posted > upthread). The idea is this: you calculate the partial products from > each end of the array. Then, e.g. product(all except x_10) = > product(x0..x9) * product(x11..x20). The code is straightforward, too I agree. Pretty neat! -- Posted via http://www.ruby-forum.com/.