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.