100
timeoutSort (lemmy.ml)
submitted 6 months ago by yogthos@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] LadyMeow@lemmy.blahaj.zone 9 points 6 months ago

I mean, it’s basically O(1), right? :p

[-] Ephera@lemmy.ml 14 points 6 months ago

I mean, it does scale with the size of the input. Just not with the count of inputs, but rather the size of each input element.

[-] jimmux@programming.dev 5 points 6 months ago

Or just the size of the largest input?

[-] Ephera@lemmy.ml 2 points 6 months ago

Oh yeah, I do think setTimeout executes in parallel, so only the largest element determines the execution time. It was difficult enough to make that sentence make sense, so I didn't want to cram that detail in as well. 🙃

[-] marduk@lemmy.sdf.org 4 points 6 months ago
this post was submitted on 04 Nov 2025
100 points (99.0% liked)

Programmer Humor

42242 readers
22 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS