minigubben's lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 2 months ago

Marge sort

lemmy.ml

message-square
7
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
16

Marge sort

lemmy.ml

HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 2 months ago
message-square
7
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • creamlike504@jlai.lu
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    I was with you until the last step. How did it all get sorted, instead of having two “peaks”?

    • xorollo@leminal.space
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      https://en.m.wikipedia.org/wiki/Merge_sort

      The video animation shows what is going on when you merge two lists together. You’re comparing the first two indices and sorting them to complete that step.

      • creamlike504@jlai.lu
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        Thank you! I now understand the joke.

        • Hupf@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 month ago

          https://youtu.be/7cDo1sWNgbI

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.

  • 117 users / day
  • 265 users / week
  • 7.33K users / month
  • 12.4K users / 6 months
  • 1 local subscriber
  • 23.7K subscribers
  • 1.44K Posts
  • 45.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
    cake
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org