⚡ STACK Arena
TOP = -1
Size = 0
Cap = 10
Type = simple
Zoom 100%
Stack Container
LIFO: Last In → First Out
STACK IS EMPTY
TOP Pointer
Empty → TOP = -1
Fill0%
UnderflowYES
OverflowNo
Top value—
TOP
Live Complexity Dashboard
Updates after every operation (counts + measured time)
What just happened?
PUSH: O(1)
POP: O(1)
PEEK: O(1)
IsEmpty: O(1)
IsFull: O(1)
SEARCH: O(n)
Dynamic stack: push/pop stay amortized O(1) even when resizing happens sometimes.
Live Counters + Time
Push calls
0
Pop calls
0
Peek calls
0
Search calls
0
Last op time
—
Average op time
—
“Measured time” is device-dependent. Big-O is theoretical growth behavior.
X
Title
Message