int count=0; for(int k=1;k<=n;k*=2) { for(intj=1;j<=n;j++) { count++; } }
O(log2n)
O(n)
O(nlog2n)
O(n2)