paint-brush
Implementing Stack in Python using Linked Listby@h3avren
6,003 reads
6,003 reads

Implementing Stack in Python using Linked List

by Ajay Singh Rana6mFebruary 5th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this tutorial we have implemented a stack using linked list and concepts of OOP in Python programming language. A stack is a LIFO data structure in which items can be added and removed, both from the same point. A linked list is a data structure made up of small nodes each of which can store a data item and an address to the next such node. The main node in our implementation is the top node which is just like all other nodes but also acts as a gateway for addition and deletion of elements. Operations like Push, Pop and Traverse are performed.

Coin Mentioned

Mention Thumbnail
featured image - Implementing Stack in Python using Linked List
Ajay Singh Rana HackerNoon profile picture
Ajay Singh Rana

Ajay Singh Rana

@h3avren

Dreaming with Python... Under a sky in India...

About @h3avren
LEARN MORE ABOUT @H3AVREN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Ajay Singh Rana HackerNoon profile picture
Ajay Singh Rana@h3avren
Dreaming with Python... Under a sky in India...

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite