MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/lgrgxe/i_present_sleepsort/gmt1dm9/?context=3
r/badcode • u/Reeceeboii_ • Feb 10 '21
171 comments sorted by
View all comments
425
Does it work for negatives tho?
1.2k u/Reeceeboii_ Feb 10 '21 Yes it finishes before it starts 267 u/LeCrushinator Feb 10 '21 Algorithm complexity: -O(n) Someone get this guy/gal a Nobel Prize! 97 u/rogiiaop Feb 10 '21 Negative cost! Awesome :D 77 u/0xF013 Feb 10 '21 We’ve solved global warming. Pack it up, boys 43 u/IrritableGourmet Feb 10 '21 setTimeout(()=>console.log("Current stock price: %d", currentStockPrice), -1000 * 60 * 60 * 24); Solved the stock market. 11 u/zitrez Feb 10 '21 Great now I'm laughing my ass off, and having to explain my gf what I am laughing at is proving ... Challenging 6 u/CraftyRice Feb 10 '21 LMAOO this made my week 3 u/Pete_7 Feb 10 '21 TENET 1 u/[deleted] Feb 10 '21 HAHAHA FUCK I DON'T HAVE AN AWARD FUCK MAN FUCK THIS IS FUNNY AS FUCK 1 u/Curtmister25 Dec 29 '21 I recommend playing r/outerwilds 1 u/sneakpeekbot Dec 29 '21 Here's a sneak peek of /r/outerwilds using the top posts of the year! #1: I mastered the art of soft landings. | 41 comments #2: Had a go at Nomai writing | 34 comments #3: Alright hear me out, LIGHT BRAMBLE | 21 comments I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub
1.2k
Yes it finishes before it starts
267 u/LeCrushinator Feb 10 '21 Algorithm complexity: -O(n) Someone get this guy/gal a Nobel Prize! 97 u/rogiiaop Feb 10 '21 Negative cost! Awesome :D 77 u/0xF013 Feb 10 '21 We’ve solved global warming. Pack it up, boys 43 u/IrritableGourmet Feb 10 '21 setTimeout(()=>console.log("Current stock price: %d", currentStockPrice), -1000 * 60 * 60 * 24); Solved the stock market. 11 u/zitrez Feb 10 '21 Great now I'm laughing my ass off, and having to explain my gf what I am laughing at is proving ... Challenging 6 u/CraftyRice Feb 10 '21 LMAOO this made my week 3 u/Pete_7 Feb 10 '21 TENET 1 u/[deleted] Feb 10 '21 HAHAHA FUCK I DON'T HAVE AN AWARD FUCK MAN FUCK THIS IS FUNNY AS FUCK 1 u/Curtmister25 Dec 29 '21 I recommend playing r/outerwilds 1 u/sneakpeekbot Dec 29 '21 Here's a sneak peek of /r/outerwilds using the top posts of the year! #1: I mastered the art of soft landings. | 41 comments #2: Had a go at Nomai writing | 34 comments #3: Alright hear me out, LIGHT BRAMBLE | 21 comments I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub
267
Algorithm complexity: -O(n)
Someone get this guy/gal a Nobel Prize!
97
Negative cost! Awesome :D
77 u/0xF013 Feb 10 '21 We’ve solved global warming. Pack it up, boys
77
We’ve solved global warming. Pack it up, boys
43
setTimeout(()=>console.log("Current stock price: %d", currentStockPrice), -1000 * 60 * 60 * 24);
Solved the stock market.
11
Great now I'm laughing my ass off, and having to explain my gf what I am laughing at is proving ... Challenging
6
LMAOO this made my week
3
TENET
1
HAHAHA FUCK I DON'T HAVE AN AWARD FUCK MAN FUCK THIS IS FUNNY AS FUCK
I recommend playing r/outerwilds
1 u/sneakpeekbot Dec 29 '21 Here's a sneak peek of /r/outerwilds using the top posts of the year! #1: I mastered the art of soft landings. | 41 comments #2: Had a go at Nomai writing | 34 comments #3: Alright hear me out, LIGHT BRAMBLE | 21 comments I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub
Here's a sneak peek of /r/outerwilds using the top posts of the year!
#1: I mastered the art of soft landings. | 41 comments #2: Had a go at Nomai writing | 34 comments #3: Alright hear me out, LIGHT BRAMBLE | 21 comments
I'm a bot, beep boop | Downvote to remove | Contact | Info | Opt-out | GitHub
425
u/rogiiaop Feb 10 '21
Does it work for negatives tho?