Closed robinvd closed 7 years ago
The complexity of remove min/max in a heap is O(log(n)) instead of O(1)
Hi Robin, thanks for your feedback. I realized the confusion is I meant to say getMin() is O(1). I'll be sure to add getMin() and change remove() to O(log(n)).
The complexity of remove min/max in a heap is O(log(n)) instead of O(1)