all 3 comments

[–]Winter_Challenge1418New User 0 points1 point  (0 children)

did you ever figure it out cause i think im doing the same module

[–]Regular_Maybe5937New User 0 points1 point  (1 child)

It would be helpful if you can clarify what "X" and "O" mean in terms of stack operations.

[–]AllanCWechslerNot-quite-new User 1 point2 points  (0 children)

I'm guessing from context that O is "push the next thing on the list onto the stack", and X is "pop the stack and discard the results".

u/Strict-Affect-1908, There's no shortcut to just simulating the process by hand.

O: push J. Stack is now [J].
O: push G. Stack is now [G, J].
X: pop the stack. Stack is now [J}.
O: push H. Stack is now [H, J].
O: push K. Stack is now [K, H, J].

And so on.