Fundamentals
/
Stack Operations
⏸
00:00
↻
← Prev
Next →
▶
Question
Process a list of stack operations like ["push", 5], ["pop"], ["peek"] and return the outputs of pop and peek calls in order. Pop/peek on empty stack returns null.
▶
My Code
▶
Reference Solution