Can somebody give me a python code for this?

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed Feb 7 15:28:55 EST 2007


John a écrit :
> Given an array of elements, look at it as a binary tree. Start at the last 
> interior node, and downheap it. Then downheap the previous interior node, 
> and continue in this fashion, up to the root. 
> 
> 
http://www.catb.org/~esr/faqs/smart-questions.html#homework



More information about the Python-list mailing list