for i = 0 ... log(n) - 1
for j = 2^i + 1 ... 2^(i + 1)
[code with Big-Theta(1) running time]
Given this piece of code the outer loop runs log(n) times. But I'm confused as to how to try to calculate the running time of the second loop so as to multiply them. Thank you for reading.