4 ms·
I can only think of a couple occasions in my professional career where recursion made more sense than iteration. Both involved traversing trees with unknown dep
by dpiers 8y ago
I can only think of a couple occasions in my professional career where recursion made more sense than iteration. Both involved traversing trees with unknown depths (parsing XML and scanning a file system).
That hasn't stopped it from showing up in every programming interview I've ever done.