David Alan Black wrote: > Hi -- > > On Tue, 6 Aug 2002, Avi Bryant wrote: > >> David Alan Black <dblack / candle.superlink.net> wrote in message >> news:<Pine.LNX.4.30.0208052056270.15880-100000 / candle.superlink.net>... >> > Hello -- >> > >> > Coding Challenge 0002 (my numbering scheme :-) has been posted to >> > <http://www.rubygarden.org/ruby?CodingChallenge0002>. >> >> So, what are the criteria for the challenge, apart from passing the >> tests? This obviously isn't golf, but the stats for my solution are: >> >> bytes: 139 >> lines: 3 >> expressions: 1 >> assignments: 0 > > The criteria are passing the tests, and the mysterious "meeting the > requirements" (which is a way of saying I doubt that the tests are > comprehensive enough). I think you get the honorary golf trophy, > though :-) > > > David > I think Avi's doesn't quite meet the requirements. This should be true, shouldn't it?: one_in_each([1,2,3],[[1,2],[1,2],[1,3]]) I have a 118 char solution (including the "def..end"!) which I think meets all requirements. Anyone care to shorten it? http://www.rubygarden.org/ruby?G00002