Place n indistinguishable items into k distinguishable boxes
castironpi at gmail.com
castironpi at gmail.com
Wed Feb 27 23:57:08 EST 2008
On Feb 27, 10:49 pm, Michael Robertson <mcrobert... at hotmail.com>
wrote:
> castiro... 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.
You could also make it half-way through, then reverse it.
More information about the Python-list
mailing list