Can anyone help me analyze the run time of the following pseudocode
for(i = 0; i < n*n*n; i++)
for(j = i; j < n; j++)
x++
The way I see it's omega(n^3) for the lower bound, since that's what it would be if inside the outer for-loop was just theta(1).
I'm getting confused by the inner loop that only runs for the first n iterations of the outer loop. Do I just average the run-time of the inside loop: n^3 * ((1/n^2)*n + (1/n)*1, in which case it's O(n^3)?