From: avi@...4.com (Avi Bryant) Date: 2002-08-07T03:21:50+09:00 Subject: Re: Coding challenge (on Ruby Garden) George Ogata wrote: > 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]]) Ah, nice catch. The only way I can think to fix that would be to use reject{|e|e.id==s.id} as you do, instead of rows-[s]. Along with Pit's suggestion, and adding a != nil, that would make our solutions identical - so I think I'll just leave mine in its (broken) state.