480
timeoutSort (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] filcuk@lemmy.zip 35 points 2 months 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 2 months ago

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

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

Programmer Humor

28926 readers
1879 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