Find the time complexity for the snippet above:
int Calculate (int a)
{
if (a <= 2)
return 1;
else
return (Calculate (floor (sqrt(a))) + a);
}
Answers
Answered by
0
Answer:
Find the time complexity for the snippet above:
int Calculate (int a)
{
if (a <= 2)
return 1;
else
return (Calculate (floor (sqrt(a))) + a);
}
Similar questions