What’s the time complexity of this loop:
for (int j=n; j > 0; j/ = 2)
cout<< j <<endl;
Group of answer choices
A.) O (n log n)
B.) O(log n)
C.) O (n2)
D.) O (n)
What’s the time complexity of this loop: for (int j=n; j > 0; j/ = 2 ) cout<< j << endl; Group of answer choices A.) O
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am