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 f(ninN)
return f(n-1)
This function doesn't include a while or for-loop, so it's not recursive.
f uses a call of f itself in its code-you can't call a function in its own code.
There is no base case: the function never knows where to stop.
What's the biggest problem with this example of a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!