← All tasks
🔍
Programming Intermediate

Fix Infinite Recursion Missing a Base Case

⏱ 5 min ⭐ 120 XP 🔁 3 attempts allowed

What you'll do

Find the missing piece causing a recursive factorial function to recurse forever and hit a stack limit.

Scenario

Calling factorial(5) crashes with a 'maximum function nesting level' or stack overflow error.

Ready to try it?

Create a free account and try "Fix Infinite Recursion Missing a Base Case" free for 7 days, no card required. Earn 120 XP and track your internship progress.

Already have an account? Sign in