• @[email protected]
      link
      fedilink
      English
      4
      edit-2
      1 year ago

      It’s the last element, so it has to wait for all the other elements on top of it to be popped in order to be accessed

      I think op meant last as in the element on the bottom

      • @alexcoder04OP
        link
        English
        31 year ago

        Yea, I meant the last element as in the one at the bottom, but now I see that it‘s a little confusing…

    • @wicked
      link
      English
      11 year ago

      Maybe it’s something about not knowing if the last element is the top of the stack or the bottom of the stack?

      • @DaleGribble88
        link
        English
        11 year ago

        Split the difference, it is the only element in a deque.

    • @[email protected]
      link
      fedilink
      English
      11 year ago

      He looks like he’s guarding something? A sentinel value in an array-based stack implementation in C or something? I don’t know, I’m a bit confused too.