When recursion beats the loop
A problem has a huge state space, but any single run only ever reaches a small part of it.
Which approach is better and why?
A problem has a huge state space, but any single run only ever reaches a small part of it.
Which approach is better and why?