Fundamentals
/
The Stack and Heap
⏸
00:00
↻
← Prev
Next →
▶
Question
Simulate a call stack: given an array of operations like ["push","main"], ["push","a"], ["pop"], return the final stack as an array (top last).
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
8