What is the complexity of a loop which goes the following?
for (int i = 0; i < n; i++)
{
for (int j = 0; j < log(i); j++)
{
// Do something
}
}
According to me, the inner loop will be running log(1)+log(2)+log(3)+...+log(n) times, so how do I calculate its complexity?