3 ms·
What does a recursive breadth-first search look like? I think you'd have to contort yourself to write that, which is why people are specifically mentioning dep
by Dylan16807 5y ago
What does a recursive breadth-first search look like? I think you'd have to contort yourself to write that, which is why people are specifically mentioning depth-first where recursion is easy and natural.
- aidenn0 5y agoAh you're right; the most natural BFS would be tail-recursive or iterative.