确定最坏情况下的时间复杂度。(显示计算)
int i = 1;
int j = 4;
while (i<(n*n)&& j<(n*n*n*n)){
if (i%3 == 0) i+=3;
else i+=4;
if (j%2 == 0) j*=4;
else j*=2;
}
确定最坏情况下的时间复杂度。(显示计算)
int i = 1;
int j = 4;
while (i<(n*n)&& j<(n*n*n*n)){
if (i%3 == 0) i+=3;
else i+=4;
if (j%2 == 0) j*=4;
else j*=2;
}