chiark / gitweb /
Fix a bug causing some solutions to be missed, e.g. (16,5).
authorSimon Tatham <anakin@pobox.com>
Fri, 14 Mar 2014 22:53:21 +0000 (22:53 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 14 Mar 2014 22:59:39 +0000 (22:59 +0000)
commitf01a960036e90eabb3bb538c96aa9b3149c463f5
tree53e7c5d090ed2b3538659730f03410dea64c8bde
parent0917331168d079acc8bd6901289acdafe9459f56
Fix a bug causing some solutions to be missed, e.g. (16,5).

One of these days I'll remember that you have to say
range(start,end-1,-1) not range(start,end,-1) to iterate down
to and including 'end' in Python.
partition.py