HEAP/priority queue

François Pinard pinard at iro.umontreal.ca
Sat May 13 20:35:36 EDT 2000


François Pinard <pinard at iro.umontreal.ca> writes:

>                 if ((high+1 < len(array)
>                      and compare(array[high], array[high+1]))) > 0:

Of course, this should have been:

>                 if ((high+1 < len(array)
>                      and compare(array[high], array[high+1]) > 0)):

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard






More information about the Python-list mailing list