Home /permanent

Base Case

The Base Case is the condition in a recursive function where it returns a result directly, without calling itself again. Every recursive function needs at least one, otherwise it would recurse forever (or until it overflows the stack).

See Recursion.