Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ isEmpty
Method
isEmpty
Queue.py:5–6 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3
self.items = []
4
5
def
isEmpty(self):
6
return
self.items == []
7
8
def
enqueue(self, item):
9
self.items.insert(0, item)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected