Bit Goblin/Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
QuentinCallaghan@sopuli.xyz to Programmer Humor@programming.devEnglish · 7 months ago

Thanos Sort

gist.github.com

external-link
message-square
5
fedilink
1
external-link

Thanos Sort

gist.github.com

QuentinCallaghan@sopuli.xyz to Programmer Humor@programming.devEnglish · 7 months ago
message-square
5
fedilink
Thanos Sort. GitHub Gist: instantly share code, notes, and snippets.
alert-triangle
You must log in or # to comment.
  • DeltaWingDragon@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    Is this like the Stalin sort?

    • Cirk2@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      7 months ago

      Similar principle but O(log(n)) istead of Stalin sorts O(n).

  • David From Space@orbiting.observer
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    Ah, this looks like it’s a snap to use.

    • Phoenixz@lemmy.ca
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      Oh God no. If I had to use snap to install this, I’ll pass.

  • kernelle@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago
            for i in range(1, len(a)):
                if a[i] < a[i-1]:
                    like_all_things_should_be = False
                    break
    

    What’s going on in Thanos’ head in all that B-roll

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.

  • 1.72K users / day
  • 4.54K users / week
  • 9.91K users / month
  • 14.3K users / 6 months
  • 1 local subscriber
  • 23.4K subscribers
  • 1.38K Posts
  • 43.7K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org