I think it&#x27;s rather universal that, for instance, a depth-first tree traversal is best done recursively.<p>In my experience, I almost always prefer recursion since it allows me to work more closely with the structure of the original data that I&#x27;m interested in instead of a set of a proxy indices which I have to track separately.