English, asked by reshmayenni456, 27 days ago

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 vijireddyk80
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