95
Data structures… (programming.dev)
top 12 comments
sorted by: hot top controversial new old
[-] Nobilmantis@feddit.it 8 points 1 year ago

The last element in a queue: :D

[-] bronzing@lemmy.fmhy.ml 6 points 1 year ago

Can someone explain the joke? I know what stacks are but I don’t get it…

[-] Gentoo1337@sh.itjust.works 4 points 1 year ago* (last edited 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

[-] bronzing@lemmy.fmhy.ml 2 points 1 year ago

Oh ok I guess that makes sense. Was it that obvious? 😅

[-] alexcoder04@programming.dev 2 points 1 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…

[-] Gentoo1337@sh.itjust.works 1 points 1 year ago

Yea I also thought the last one was the bottom one but then I remembered it was lifo

[-] fullcircle@vlemmy.net 1 points 1 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.

[-] wicked@programming.dev 1 points 1 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@programming.dev 1 points 1 year ago

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

[-] stratoscaster@lemmy.zip 2 points 1 year ago

LIFO or FIFO hmmm

[-] nintendiator@feddit.cl 2 points 1 year ago

I alughed at this more than I have any right to.

[-] Sexypink@exploding-heads.com 1 points 1 year ago

The 5th element

load more comments
view more: next ›
this post was submitted on 05 Jul 2023
95 points (90.6% liked)

Programmer Humor

19503 readers
328 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS