The efficiency of the algorithm doIt
can be expressed as O(n) = n^3. Calculate the efficiency of the following program segment exactly. Then calculate the efficiency using the big-O notation. Show calculations.
for (i = 1; i <= n + 1; i++)
for (j = 1; j < n; j++)
doIt (...);
Thanks in advance.