FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/algorithms/data-structures/stacks/node.py at master · AllAlgorithms/python · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
This repository was archived by the owner on Sep 7, 2025. It is now read-only.
AllAlgorithms
/
python
Public archive
Notifications
You must be signed in to change notification settings
Fork
170
Star
385
Code
Issues
1
Pull requests
19
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
algorithms
/
data-structures
/
stacks
/
node.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
30 lines (20 loc) · 445 Bytes
Breadcrumbs
python
/
algorithms
/
data-structures
/
stacks
/
node.py
Copy path
File metadata and controls
30 lines (20 loc) · 445 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class
Node
:
def
__init__
(
self
,
item
,
next
=
None
):
self
.
item
=
item
self
.
next
=
next
def
__str__
(
self
):
string
=
'['
+
str
(
self
.
item
)
+
']'
next
=
self
.
next
while
next
:
if
next
:
string
+=
' -> '
+
str
(
next
)
next
=
next
.
get_next
()
return
string
def
get_item
(
self
):
return
self
.
item
def
get_next
(
self
):
return
self
.
next
def
set_item
(
self
,
item
):
self
.
item
=
item
def
set_next
(
self
,
next
):
self
.
next
=
next
Back
|
FazBrowse Home
|
New Git URL