首页 › 答案 › 题库 › 远程教育 › 联大学堂

试分析下面各程序段的时间复杂度。i=1; while(i<=n) i=i*3;

试分析下面各程序段的时间复杂度。i=1; while(i<=n) i=i*3;
正确答案:O(log3n)
上一条:存储结构