谁能解释一下这个算法的时间复杂度是多少?
for (i = 1; i <= n; i++){ for(j = 1; j <= n; j += i) { // note: not j++ printf("Iteration %d : %d\n", i, j); } }
c big-o time-complexity
big-o ×1
c ×1
time-complexity ×1