Star Trek Website
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
alexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 3 年前

Data structures…

programming.dev

message-square
12
link
fedilink
91

Data structures…

programming.dev

alexcoder04@programming.dev to Programmer Humor@programming.devEnglish · 3 年前
message-square
12
link
fedilink
alert-triangle
You must log in or # to comment.
  • Nobilmantis@feddit.it
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 年前

    The last element in a queue: :D

  • bronzing@lemmy.fmhy.ml
    link
    fedilink
    English
    arrow-up
    6
    ·
    3 年前

    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
      3 年前

      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
        ·
        3 年前

        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
          ·
          3 年前

          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
        ·
        3 年前

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

    • fullcircle@vlemmy.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 年前

      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
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 年前

      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
        ·
        3 年前

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

  • stratoscaster@lemmy.zip
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 年前

    LIFO or FIFO hmmm

  • nintendiator@feddit.cl
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    3 年前

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

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.

  • 498 users / day
  • 2.52K users / week
  • 7.52K users / month
  • 17K users / 6 months
  • 96 local subscribers
  • 29.9K subscribers
  • 2.11K Posts
  • 80.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org