[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [/QUIZ] #65: Splitting the Loot

Levin Alexander

2/6/2006 10:13:00 AM

On 2/5/06, Levin Alexander <levin@grundeis.net> wrote:> My solution is attached. It solves via recursion with a few> optimizations (it is still really slow, though)Here is an updated version that stops recursing, if someone getsassigned more than his share. (I can not *believe* that I did notthink of this earlier) This speeds everything up quite a lot.-Levin