✏️ Explanatory Question
Q. If the efficiency of doIt() is
O(n²), calculate the efficiency of the following
logarithmic loop:
for (i = 1; i <= n; i = i * 2) {
doIt();
}
Q. If the efficiency of doIt() is
O(n²), calculate the efficiency of the following
logarithmic loop:
for (i = 1; i <= n; i = i * 2) {
doIt();
}
Answer not available right now.