3 ms·
I didn't really understand how to solve recursion until I spent a day thinking about it, then tried to fall asleep. the solution appeared in my half-asleep min
by dekhn 10y ago
I didn't really understand how to solve recursion until I spent a day thinking about it, then tried to fall asleep. the solution appeared in my half-asleep mind, fully formed. I woke up, wrote it down, and went back to sleep. In the morning, I typed in the program and it worked on the first try (until I inicreased the recursion depth beyond what my 286's stack could handle and it crashed).