Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ peek
Method
peek
Python/stack using linked list.py:45–50 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
43
44
# peek
45
def
peek(self):
46
if
self.isEmpty():
47
print(
"there is no element in the stack"
)
48
else
:
49
nodeValue=self.LinkedList.head.value
50
return
nodeValue
51
52
53
Callers
8
dijkstras_two_stack_algorithm
Function · 0.95
infix2Prefix
Method · 0.95
isBalanced
Method · 0.95
merge
Method · 0.95
checkBalanced
Method · 0.95
infixToPostFix
Method · 0.95
reverseWords
Method · 0.95
stack using linked list.py
File · 0.45
Calls
2
isEmpty
Method · 0.95
print
Function · 0.50
Tested by
no test coverage detected