I am just trying to figure out the runtime of the code below. My thought is that time = log1 + log2 + log3 + ... + log(n-1) = log(n-1)!, but I do not know how to simplify it to big-O.
for (int i = 0; i < n; i++) {
for (int j = i; j > 0; j /= 2){
// statement;
}
}