下面程序段的时间复杂度是 () 。 i = 0; while(i<=n) i = i * 3;

A.O(2^n) B.O(n) C.O(n^2) D.O(log3n)

时间:2024-05-04 09:07:46

相似题目