3 ms·
Mastering recursion is like unicycling. It is easy once you get it. So easy, in fact, that you are tempted to forget that it was ever hard. Using recursion sa
by gorjusborg 2y ago
Mastering recursion is like unicycling.
It is easy once you get it. So easy, in fact, that you are tempted to forget that it was ever hard.
Using recursion safely requires a less natural pattern of thought than if/while/for. Once you get it, sure, it's easy. But lets not trivialize the initial struggle either.