Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 28, 2024
1 parent 7d36b4f commit 28508cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cs/structures/heap/fibonacci_heap.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,7 @@ def dequeue(self) -> tuple[T, float]:
# reparent operation that merged two different trees of equal
# priority, we need to make sure that the min pointer points to
# the root-level one.
if curr <= self.top:
self.top = curr
self.top = min(self.top, curr)
if not self.allow_duplicates:
del self.elem_to_entry[min_elem.value]
return return_val
Expand Down

0 comments on commit 28508cd

Please sign in to comment.