top | item 19761695 (no title) marvinjames | 6 years ago Best case for heapsort is actually O(n). Build heap always takes O(n). Then e.g. when all keys are the same, the max-heapify call will take O(1) instead of O(logn). discuss order hn newest gameguy43|6 years ago Hmmmm good point!
gameguy43|6 years ago