On Thu, Mar 19, 2009 at 21:49:06 +0000, Ganesh Sittampalam wrote: > I think this is indeed buggy, or at least underspecified, btw: suppose > one person needs $990 and the other needs $10, then if the list is > [10,990] they'll both get what they need, but if it's [990, 10] then the > first person will only get $500. However if we require the input list to > be sorted first, I think it's ok.
Oh yeah, the attached version sorts the list and passes it on to a helper function. Are there any other bugs to watch out for? -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9
pgpe1Hi0qSgUi.pgp
Description: PGP signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
