有下列算法片段,请分析算法的时间复杂度是()voidfunc(intn){inti=,s=;while(s<=n){i++;s=s+i;}}AO(n)BO(logn)CO(n^)DO(sqrt(n))

  尔雅 智慧树 mooc


+
账户
更新
搜索
帮助
主页