I am trying to understand the example for big O on this page: http://pages.cs.wisc.edu/~vernon/cs367/notes/3.COMPLEXITY.html
for (i = 0; i < N; i++) {
for (j = i+1; j < N; j++) {
sequence of statements }
}
I don't understand why inner loop will run for N if i=0. If i=0, then j=1, and as the result, number of iterations for inner loop should be N-1. I understand why the complexity of this loop is O(n^2). What I don't understand is why the inner loop starts with N number of iterations, not N-1.