alexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 1 year agoData structures…programming.devimagemessage-square9fedilinkarrow-up179arrow-down110
arrow-up169arrow-down1imageData structures…programming.devalexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 1 year agomessage-square9fedilink
minus-squarebronzing@lemmy.fmhy.mllinkfedilinkEnglisharrow-up3·1 year agoCan someone explain the joke? I know what stacks are but I don’t get it…
minus-squarefullcircle@vlemmy.netlinkfedilinkEnglisharrow-up1·1 year agoHe 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.
minus-squareGentoo1337@sh.itjust.workslinkfedilinkEnglisharrow-up1·edit-21 year agoIt’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
minus-squarealexcoder04@programming.devOPlinkfedilinkEnglisharrow-up3·1 year agoYea, I meant the last element as in the one at the bottom, but now I see that it‘s a little confusing…
minus-squarebronzing@lemmy.fmhy.mllinkfedilinkEnglisharrow-up1·1 year agoOh ok I guess that makes sense. Was it that obvious? 😅
minus-squarewicked@programming.devlinkfedilinkEnglisharrow-up0·1 year agoMaybe it’s something about not knowing if the last element is the top of the stack or the bottom of the stack?
minus-squareDaleGribble88@programming.devlinkfedilinkEnglisharrow-up1·1 year agoSplit the difference, it is the only element in a deque.
Can someone explain the joke? I know what stacks are but I don’t get it…
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.
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
Yea, I meant the last element as in the one at the bottom, but now I see that it‘s a little confusing…
Oh ok I guess that makes sense. Was it that obvious? 😅
Maybe it’s something about not knowing if the last element is the top of the stack or the bottom of the stack?
Split the difference, it is the only element in a deque.