They differ in actual running time I know but using the concept I cannot determine, since the codes are drastically different in execution, how they have the same time complexity.
How come
void fun(){
int i, j;
for (i=1; i<=n; i++){
for (j=1; j<=log(i); j++){
printf("GeeksforGeeks");//prin tit
}
}
}
and
void fun2(){
int i, j;
for (i=1; i<=n; i++){
for (j=1; j<=log(n); j++){
printf("GeeksforGeeks");//print it
}
}
}
are asymptotically the same and have a time complexity of O(logn!)
?