Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/itcharge/AlgoNote
/ push
Method
push
codes/python/03_stack_queue_hash_table/stack_link_stack.py:16–19 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
14
15
# 入栈操作
16
def
push(self, value):
17
cur = Node(value)
18
cur.next = self.top
19
self.top = cur
20
21
# 出栈操作
22
def
pop(self):
Callers
1
stack_link_stack.py
File · 0.45
Calls
1
Node
Class · 0.70
Tested by
no test coverage detected