4 ms·
Sleep sort only works if the time to enumerate the list and schedule timers is sufficiently small relative to the multiplier. I think a correct implementation
by olliej 5y ago
Sleep sort only works if the time to enumerate the list and schedule timers is sufficiently small relative to the multiplier.
I think a correct implementation would be sleep(x * k) where k is a constant factor determined by the platform