

MCQOPTIONS
Saved Bookmarks
1. |
Consider the programvoid function(int n) {int i, j, count=0;for (i=n/2; i <= n; i++)for (j = 1; j <= n; j = j*2)count++;}The complexity of the program is |
A. | O(log n) |
B. | O(n2) |
C. | O(n2logn) |
D. | O(n log n) |
Answer» E. | |