mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
clean of unnecessary checks, imports, calls (#7993)
This commit is contained in:
@ -121,7 +121,7 @@ class MinHeap:
|
||||
self.sift_up(len(self.heap) - 1)
|
||||
|
||||
def is_empty(self):
|
||||
return True if len(self.heap) == 0 else False
|
||||
return len(self.heap) == 0
|
||||
|
||||
def decrease_key(self, node, new_value):
|
||||
assert (
|
||||
|
Reference in New Issue
Block a user