You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 15, 2021. It is now read-only.
The BinaryHeap consistency can break if an item is removed under specific conditions. The bug can be reproduced with the code below:
The above code should print out all the values in rising order, i.e. the expected output is:
However, the actual output is:
It looks like the algorithm in
remove()is not correct