Place n indistinguishable items into k distinguishable boxes

Michael Robertson mcrobertson at hotmail.com
Thu Feb 28 05:49:22 CET 2008


castironpi at gmail.com wrote the following on 02/27/2008 08:46 PM:
> Just sort the list in text-ascending order, and it's pretty clear.

Indeed.  After trying Mark's solution, I saw that it sorted in a very 
nice manner.



More information about the Python-list mailing list