How does addition of log N times for loop 1 and log N times for loop 2 give log log N as the answer?
Find the time complexity of the given code.
void pat(){
for (int i = 2; i <=n; i = pow(i, c)) {
print("*")
}
//Here fun is sqrt or cuberoot or any other constant root
for (int i = n; i > 1; i = fun(i)) {
print("*")
}
}