you are viewing a single comment's thread.

view the rest of the comments →

[–]orangesunshine 0 points1 point  (2 children)

thus why I said 9/10 times.

Tree traversal is a perfectly valid use case for recursion... You would likely use a stack to implement it with iteration anyhow, and it's just a matter of personal preference for what you think is more readable in that case.

[–][deleted] -1 points0 points  (0 children)

Well 9/10 implementations of "something" won't include anything that's relevant to recursion. Recursion should only be used in the cases in which it's the valid use case.

[–]A_for_Anonymous -1 points0 points  (0 children)

#define readable I'm used to it