Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ push
Method
push
Python/queue via stack.py:10–11 ·
view source on GitHub ↗
(self,item)
Source
from the content-addressed store, hash-verified
8
return
len(self.list)
9
10
def
push(self,item):
11
self.list.append(item)
12
13
def
pop(self):
14
if
len(self.list)==0:
Callers
10
balanced_parentheses
Function · 0.95
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
enqueue
Method · 0.45
dequeue
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected