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


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

正确答案:O(log3n)


Tag:数据结构 复杂度 时间 时间:2024-01-19 16:05:29

热门答案