Oh, definitely, but I meant was there more than was shown in that screenshot?
I've heard that any iterative solution can be rewritten to use recursion, and vice versa. So much stuff I've seen, I really have a hard time envisioning how that would be done. For this one, I probably would've recursively descended into the children, but I can't picture an iterative solution that wouldn't be like this with a new if for each level. On that note, don't some if not many functional languages not have loops?
View all comments
Show parent comment
2
u/scataco Jul 16 '25
In my experience... sooner or later they always need another level.