Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does recursion mean in programming?
Think about how you can break down problems.
Define a base case in recursion.
It's how recursion knows when to stop.
What is recursion?
Think about functions that self-reference.
True or False: Recursive functions must always have a base case.
Consider the definition of a base case.
Write a recursive function to compute the nth Fibonacci number and explain its time complexity.
Consider how many times a number appears in the function calls.
Analyze the space complexity of a recursive function and how it differs from an iterative version.
What happens to the call stack during each recursive call?
7 more questions in this section. Enroll free to practise them all.
Enroll free