Question: What's the biggest problem with this example of a recursive algorithm? function f ( n i n N ) return f ( n - 1
What's the biggest problem with this example of a recursive algorithm?
function
return
This function doesn't include a while or forloop, so it's not recursive.
f uses a call of itself in its codeyou can't call a function in its own code.
There is no base case: the function never knows where to stop.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
