Place n indistinguishable items into k distinguishable boxes

Michael Robertson mcrobertson at hotmail.com
Wed Feb 27 23:49:22 EST 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