填空題

intcount=1;while(count<n){count=count*2;}n是問題的規(guī)模,請問該算法的時間復(fù)雜度是()

答案: O(logn)
微信掃碼免費搜題