python-data-structures
python-data-structures copied to clipboard
Questioon the pop method
https://github.com/heineman/python-data-structures/blob/1de93ca99ba564b2ba13113cb3be6855eec8d2d5/5.%20Heap-based%20Structures/binaryHeap.py#L67
Is that line rather if child + 1 < self.n
?