From: Bill Kelly Date: 2002-08-09T08:38:52+09:00 Subject: Re: Coding challenge (on Ruby Garden) [long] From: "Christoph" > > "Bill Kelly" wrote in > ... > > The second failed on just the latter dataset, above. (And both > > failed on my larger 'benchmark' dataset...) > > Sorry, for my editing mistakes - I'll (hopefully) corrected them. Both solutions still fail on: items = [ 1,2,2 ] rows = [ [1,2], [1,2], [1,3] ] Note, this isn't one of the unit tests on the wiki page - I'll add it (there's a similar one, test_true_5, but, your algorithms pass that test but not this one above...) . . . [added as test_true_7] Regards, Bill