4 ms·
The "no sleep statement" rule is just there to prevent a pseudocode solution from being too easy. The point is to see if someone will submit something that mak
by kevinskii 16y ago
The "no sleep statement" rule is just there to prevent a pseudocode solution from being too easy.
The point is to see if someone will submit something that makes me think, "Oh wow, I would have never considered doing it that way." Thus expanding my software horizons forevermore. It's a simple problem with potentially several creative solutions.
- mooism2 16y agoBusy waiting isn't any more interesting than calling sleep(). Spectacularly convoluted ways of generating a particular output, yes, that could be interesting.