-1
For (int i=1; i <=n;i/=2){
   System.out.println(i);
}

上記のコーディングに関する時間計算量は、log (n) ですか?

ありがとう!

4

1 に答える 1