Programmer Humor @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml 4w ago timeoutSort 1 crossposts Programmer Humor @programming.dev cm0002 @lemmy.world 4w ago timeoutSort
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.
PR: - setTimeout(() => console.log(item), item) + setTimeout(() => console.log(item), Math.log(item)) Comment: This will speed up sort time greatly. However, sort order may become erratic for longer lists, and lists with numbers less than 1
How does a programming joke cause me physical pain?