Encoded Stack Mechanism
Regular Stack
Encoded Stack
Push 5
In an encoded stack, we store values in a way that helps us track the minimum value efficiently.
Current Minimum: None
Previous
Step 1 of 5
Next