3 ms·
That implementation had no exit conditions on the recursion, so after the child fell asleep, my computer went to sleep.
by jimfl 16y ago
That implementation had no exit conditions on the recursion, so after the child fell asleep, my computer went to sleep.
- slmbrhrt 16y agoIt appears that the exit condition is that you're a little weasel, or your mom finishes the story. Clearly, the original mom could have optimized by telling a story about a little weasel that couldn't get to sleep.