Alien Top
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
QuentinCallaghan@sopuli.xyz to Programmer Humor@programming.devEnglish · 6 months ago

Thanos Sort

gist.github.com

external-link
message-square
7
fedilink
77
external-link

Thanos Sort

gist.github.com

QuentinCallaghan@sopuli.xyz to Programmer Humor@programming.devEnglish · 6 months ago
message-square
7
fedilink
Thanos Sort. GitHub Gist: instantly share code, notes, and snippets.
alert-triangle
You must log in or register to comment.
  • David From Space@orbiting.observer
    link
    fedilink
    English
    arrow-up
    30
    ·
    6 months ago

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

    • Phoenixz@lemmy.ca
      link
      fedilink
      arrow-up
      20
      ·
      6 months ago

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

      • lambalicious@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        7
        ·
        6 months ago

        Then you’ll need some heroes to install it, even if they’re a bit of a flat pack.

    • Aurenkin@sh.itjust.works
      link
      fedilink
      arrow-up
      15
      ·
      6 months ago

      If you have the stones to try it

  • kernelle@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    6 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

  • DeltaWingDragon@sh.itjust.works
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    6 months ago

    Is this like the Stalin sort?

    • Cirk2@programming.dev
      link
      fedilink
      arrow-up
      5
      ·
      6 months ago

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

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.51K users / day
  • 4.81K users / week
  • 9.35K users / month
  • 17.8K users / 6 months
  • 15 local subscribers
  • 23.1K subscribers
  • 1.24K Posts
  • 27.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • adr1an@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org