From: Christer Nilsson Date: 2005-12-31T08:48:57+09:00 Subject: Re: Numeric Maze (#60) Jim Freeze wrote: >> solve(1, 1) # => [1] > > > Is this a degenerate case? If to go from a to b in (a,b) through > transformation x,y or z, wouldn't there be two possible shortest > solutions: > > [1,2,1] > [1,0.5,1] Only positive integers are allowed. That means you can't divide odd numbers with two (operation halve) If start equals target, zero steps are needed. Christer Nilsson -- Posted via http://www.ruby-forum.com/.