Glossary term

What is recursion? Meaning for developers

Solve a problem by having a function call itself on a smaller version of the same problem, until it reaches a base case.

Learn it properly · DSALesson 14: Recursion BasicsA function that calls itself, a base case that stops it, and the call stack underneath.

All DSA terms

Related terms

← All glossary terms, A to Z