kuuhana
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Programmer Humor@programming.devbyalexcoder04@programming.dev
3 years

Data structures…

programming.dev English
13
    You must log in or register to comment.

    • Nobilmantis@feddit.itEnglish
      3 years

      The last element in a queue: :D

      • bronzing@lemmy.fmhy.mlEnglish
        3 years

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

          • Gentoo1337@sh.itjust.worksEnglish
            3 years

            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.devEnglish
                3 years

                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.worksEnglish
                    3 years

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

                  • bronzing@lemmy.fmhy.mlEnglish
                    3 years

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

                  • wicked@programming.devEnglish
                    3 years

                    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.devEnglish
                        3 years

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

                      • fullcircle@vlemmy.netEnglish
                        3 years

                        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.

                      • nintendiator@feddit.clEnglish
                        3 years

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

                        • stratoscaster@lemmy.zipEnglish
                          3 years

                          LIFO or FIFO hmmm

                          • Alice@exploding-heads.comEnglish
                            3 years

                            The 5th element

                            Programmer Humor@programming.dev

                            programmer_humor@programming.dev

                            Subscribe from remote instance

                            Create post

                            Report community

                            Modlog
                            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
                              • If the mod doesn’t find it funny, you’re banned. Ha-ha!.. For real: do not use the community for “statements”. There are other places for such content. Keep it chill and funny.
                            Visibility: Public

                            This community is visible to everyone.

                            • 587 users / Day
                            • 4K users / Week
                            • 7.9K users / Month
                            • 12K users / 6 months
                            • 2.63K posts
                            • 98.1K comments
                            • 2 local subscribers
                            • 34.3K subscribers
                            • UI: 1.0.0-beta.0
                            • BE: 1.0.0-alpha.20
                            • Modlog
                            • Instances
                            • Docs
                            • Code
                            • join-lemmy.org