• + 0 comments

    Although I get why its working, I feel that conceptually its misleading to talk about stacks. Technically you can only view the top of item of a stack or peek at without removing it but basically the solution is that you can peek at all the values if you want and then decide which values to remove.