Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/careercup/ctci
/ __init__
Method
__init__
python/Chapter 3/Question3_5/3_5.py:52–54 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
50
51
class
Stack(object):
52
def
__init__(self):
53
self.stack = Node()
54
self.size = 0
55
56
def
push(self, data):
57
self.stack = Node(data, self.stack)
Callers
nothing calls this directly
Calls
1
Node
Class · 0.70
Tested by
no test coverage detected