Skip to content

Commit 24ef668

Browse files
committed
Two Hundred - Ninty-Six Commit: Create is_empty() function
1 parent 873cb1d commit 24ef668

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Section_10(Priority-Queue-Heaps)/(1)_heap.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@ def __init__(self):
4545

4646
def __len__(self):
4747
return len(self._data)
48+
49+
def is_empty(self):
50+
return len(self._data)
51+

0 commit comments

Comments
 (0)