From: Manuel Kasten Date: 2006-02-09T21:28:22+09:00 Subject: Re: [QUIZ][SOLUTION] Splitting the Loot (#65) (My second attempt) Adam Shelly wrote: > On 2/8/06, Manuel Kasten wrote: > >>Adam Shelly wrote: >> >>>My turn to say 'Doh!' >> >>Yet again. Your new version doesn't split >> >>6-ways >>26 77 26 77 1 39 17 10 90 89 3 20 47 37 51 9 34 15 22 22 94 52 >> > > > Aargh. > How about this one: here is a replacement splitter function - drop > into my last submission. > I added 2 more tests to detect unsplittable sets before I start > iterating, and I fixed the iterator to be sure it tests every > combination, and quits as soon as it finds a value which can not fit > into any fair share. Oh, and I added one helper to Integer: It doesn't split (46 69 88 119 130 159 208 233 242 396) 2-ways: 1: 88 119 242 396 2: 46 69 130 159 208 233 Manuel