Can someone explain the joke? I know what stacks are but I don’t get it…
6 0 ReplyIt'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
2 0 ReplyYea, I meant the last element as in the one at the bottom, but now I see that it‘s a little confusing…
1 0 Reply
Maybe it's something about not knowing if the last element is the top of the stack or the bottom of the stack?
1 0 ReplySplit the difference, it is the only element in a deque.
1 0 Reply
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.
1 0 Reply
The last element in a queue: :D
6 0 ReplyI alughed at this more than I have any right to.
3 1 ReplyLIFO or FIFO hmmm
1 0 Reply