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 is recursion?
Think about how recursion can simplify complex problems.
Identify the base case in a recursive function.
Consider what condition prevents additional calls.
What is a base case in recursion?
Remember why functions need a point to stop.
Which of the following best describes recursion?
Think about the definition we discussed.
How would you optimize a naive recursive Fibonacci function using memoization?
Consider how you can avoid duplicate calculations.
Create a recursive function that reverses a string.
Think about how breaking down the string helps.
5 more questions in this section. Enroll free to practise them all.
Enroll free