debuggingrecursion
A recursive call needs to make progress
Anonymous
each call should move toward a base case, such as using a smaller range or one fewer item. If the state can repeat without shrinking, recursion may never terminate. writing down what changes at every call is a quick way to check.
0