here is the simple code, i want to find out the time complexity of the code i have already done analysis on it, my teacher told me that there is a mistake in it. i am not able to figure out where i am wrong. need a help in it. thanks
j = 2
while(j<n)
{
k=j
while(k < n)
{
sum + = a[k]*b[k]
k = k*k
}
k = log(n)
j += log(k)
}
here what i got the answer
time complexity = O(n/loglogn).
i just want to know where i am wrong