77
Thanos Sort (gist.github.com)
top 7 comments
sorted by: hot top controversial new old
[-] emuspawn@orbiting.observer 29 points 1 week ago

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

[-] phoenixz@lemmy.ca 18 points 1 week ago

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

[-] lambalicious@lemmy.sdf.org 7 points 1 week ago

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

[-] Aurenkin@sh.itjust.works 15 points 1 week ago

If you have the stones to try it

[-] kernelle@lemmy.world 9 points 1 week 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 4 points 1 week ago

Is this like the Stalin sort?

[-] Cirk2@programming.dev 4 points 1 week ago

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

this post was submitted on 09 Nov 2024
77 points (96.4% liked)

Programmer Humor

19623 readers
1 users here now

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

founded 1 year ago
MODERATORS