From: David Alan Black Date: 2002-08-06T10:47:44+09:00 Subject: Re: Coding challenge (on Ruby Garden) Hi -- On Tue, 6 Aug 2002, Tom Sawyer wrote: > On Mon, 2002-08-05 at 18:58, David Alan Black wrote: > > This would return true: > > > > [1,2,3] > > [ [1,11,111], [0,3,2], [2,4,6] ] > > > > This would return false: > > > > [1,2,3] > > [ [1,11,111], [0,3,2], [4,6,8] ] > > > > (because 2 and 3 aren't allowed to correspond to the same array). > > what about this > > [1,2] > [ [1,2], [1,2] ] > > does that comply? Yes. As long as you can draw one line, so to speak, from each item to an array, and as long as one and only one line touches each item and each array, it's OK. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav