479
timeoutSort (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] filcuk@lemmy.zip 35 points 1 month ago

As added benefit, you can then opyimise the code by dividing the number by 2, making it twice as fast. Think of the savings!

[-] lugal@lemmy.dbzer0.com 5 points 1 month ago

Better yet: take the square root and you get a sub-linear run time

this post was submitted on 04 Nov 2025
479 points (99.2% liked)

Programmer Humor

28001 readers
662 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 2 years ago
MODERATORS