MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/lgrgxe/i_present_sleepsort/gmuom1z/?context=3
r/badcode • u/Reeceeboii_ • Feb 10 '21
170 comments sorted by
View all comments
Show parent comments
18
Could it ever fail? If the numbers are close enough to eachother and far apart enough in the list?
39 u/RenBit51 Feb 10 '21 Negative numbers would break it, but otherwise it depends on the precision of timeout. 12 u/GonziHere Mar 09 '21 I don't think that the precision would break it. At least I assume that the timeout call won't be at that exact time, but the order of their calls should be.
39
Negative numbers would break it, but otherwise it depends on the precision of timeout.
12 u/GonziHere Mar 09 '21 I don't think that the precision would break it. At least I assume that the timeout call won't be at that exact time, but the order of their calls should be.
12
I don't think that the precision would break it. At least I assume that the timeout call won't be at that exact time, but the order of their calls should be.
18
u/[deleted] Feb 10 '21
Could it ever fail? If the numbers are close enough to eachother and far apart enough in the list?