Switter.su
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 2 years ago

Data structures…

programming.dev

message-square
13
fedilink
94

Data structures…

programming.dev

alexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 2 years ago
message-square
13
fedilink
alert-triangle
You must log in or register to comment.
  • Nobilmantis@feddit.it
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 years ago

    The last element in a queue: :D

  • bronzing@lemmy.fmhy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

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

    • Gentoo1337@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      2 years 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

      • alexcoder04@programming.devOP
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years 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
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

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

      • bronzing@lemmy.fmhy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

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

    • wicked@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years 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
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

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

    • fullcircle@vlemmy.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years 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.

  • stratoscaster@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 years ago

    LIFO or FIFO hmmm

  • nintendiator@feddit.cl
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    2 years ago

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

  • Alice@exploding-heads.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    The 5th element

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.56K users / day
  • 4.56K users / week
  • 8.27K users / month
  • 16.7K users / 6 months
  • 1 local subscriber
  • 23.3K subscribers
  • 1.4K Posts
  • 47.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.10
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org