Comment on Wanna play a game? (please don't call osha)
Speiser0@feddit.org 2 months ago
Ah, it’s this time of the year again. linked-list (version 3)
Comment on Wanna play a game? (please don't call osha)
Speiser0@feddit.org 2 months ago
Ah, it’s this time of the year again. linked-list (version 3)
wise_pancake@lemmy.ca 2 months ago
Does this work?
If you looped it or created a doubly linked list what would happen?
zalgotext@sh.itjust.works 2 months ago
Either perpetual motion, or a very wet desk, no in-between
reinei@lemmy.world 2 months ago
This particular version wouldn’t work because the exit point is not lower than the entry point so after a possible initial splash from the first glass the outside air would rush in from the top of the straw and thus push down the water to its own level again…
So sadly no singly linked lists without stairs!
wise_pancake@lemmy.ca 2 months ago
That makes sense
I knew there had to be a catch