Comment on Wanna play a game? (please don't call osha)
Speiser0@feddit.org 1 month 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 1 month ago
Ah, it’s this time of the year again. linked-list (version 3)
wise_pancake@lemmy.ca 1 month ago
Does this work?
If you looped it or created a doubly linked list what would happen?
zalgotext@sh.itjust.works 1 month ago
Either perpetual motion, or a very wet desk, no in-between
reinei@lemmy.world 1 month 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 1 month ago
That makes sense
I knew there had to be a catch