• wise_pancake
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 day ago

    Does this work?

    If you looped it or created a doubly linked list what would happen?

    • reinei@lemmy.world
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day 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!