Fundamentals/The Stack and Heap
← PrevNext →
Simulate a call stack: given an array of operations like ["push","main"], ["push","a"], ["pop"], return the final stack as an array (top last).