int recursiveFun3(int n) { } if (n <= 0) return 1; else return 1 + recursiveFun3(n/5);

icon
Related questions
Question

Use master therom to determine the complexity of the following:

8. int recursiveFun3(int n)
{
}
if (n <= 0)
return 1;
else
return 1 + recursiveFun3(n/5);
Transcribed Image Text:8. int recursiveFun3(int n) { } if (n <= 0) return 1; else return 1 + recursiveFun3(n/5);
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer