通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
下列程序段的时间复杂度是( )。
int sum= 0; for (int i=1;i<n;i*=2) for(int j=0;j<i;j++) sum++;