Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ peek
Method
peek
Python/circular queue.py:71–75 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
69
70
# peek()
71
def
peek(self):
72
if
self.isEmpty():
73
return
"no element in queue"
74
else
:
75
return
self.items[self.start]
76
77
78
Callers
2
medianSlidingWindow
Method · 0.45
checkForCycle
Method · 0.45
Calls
1
isEmpty
Method · 0.95
Tested by
no test coverage detected