What do Push and Pop mean for Stacks?

后端 未结 9 1088
臣服心动
臣服心动 2021-01-31 18:35

long story short my lecturer is crap, and was showing us infix to prefix stacks via an overhead projector and his bigass shadow was blocking everything so i missed the importan

9条回答
  •  深忆病人
    2021-01-31 18:48

    Simply:

    • pop: returns the item at the top then remove it from the stack

    • push: add an item onto the top of the stack.

提交回复
热议问题