Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Algorithms
Algorithmseasy

What is recursion and what is a base case?

Tags
#recursion#base-case#call-stack
Back to categoryPractice quiz

Answer

Recursion is when a function solves a problem by calling itself on a smaller input. The base case is the stopping condition that does not recurse, so the calls eventually end.

Related questions

Algorithms
Backtracking: what is it and when do you use it?
#backtracking#search#pruning
Kotlin
`tailrec`: what does it do and when can Kotlin optimize recursion?
#kotlin#tailrec#recursion