Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice
/ Stack.py
File
Stack.py
Data Structures/Stack/Python/Stack.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
#A stack is a linear data structure that stores items in a Last-In/First-Out (LIFO) or First-In/Last-Out (FILO) manner
2
3
class
Node:
4
def
__init__(self, data):
Callers
nothing calls this directly
Calls
6
Stack
Class · 0.85
print
Function · 0.50
push
Method · 0.45
display
Method · 0.45
pop
Method · 0.45
top
Method · 0.45
Tested by
no test coverage detected