What would be the time complexity for this, will it be O(logn)?
fun(int n) {
if (n < 2)
return 1;
int counter = 0;
for (int i = 1; i <= 8; i++)
fun(n / 2);
for (int i = 1; i <= Math.pow(n, 3); i++)
counter++;
}
funreturn?intorvoid? Anyway it doesn't compile.