Skip to content

Commit

Permalink
Update priority_queue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimbobae1 authored Mar 11, 2024
1 parent 22221d3 commit 2ab59ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priority_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def pop(self):
self._sift_down(0)
return item
elif len(self.heap) == 1:
priority, item = self.heap.pop()
item = self.heap.pop()
return item
else:
return None
Expand Down

0 comments on commit 2ab59ee

Please sign in to comment.