Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/OmkarPathak/pygorithm
/ is_empty
Method
is_empty
pygorithm/data_structures/queue.py:31–35 ·
view source on GitHub ↗
checks if the queue is empty
(self)
Source
from the content-addressed store, hash-verified
29
return
self.size
30
31
def
is_empty(self):
32
""
"
33
checks
if
the queue is empty
34
""
"
35
return
self.size <= 0
36
37
def
enqueue(self, data):
38
""
"
Callers
2
dequeue
Method · 0.95
test_queue
Method · 0.95
Calls
no outgoing calls
Tested by
1
test_queue
Method · 0.76