DEV Community

Discussion on: What is Recursion, and Why Shouldn't You Use It?

Collapse
 
darthbob88 profile image
Raymond Price

Well that, and it's often simpler and clearer than the iterative method. Compare the two versions of tree traversal in this article.