Question: Characterize the efficiency, using big o notation of the following function: def do something n): for i in range(0, n) : ali] = 1 for
Characterize the efficiency, using "big o" notation of the following function: def do something n): for i in range(0, n) : ali] = 1 for i in range (0, n): for in range(0, n): print(a[1] al:1) Assume print is 0(1), that is constant number of operations. Select one: O a. of log n) Ob of nlogn) 0.01 m O d. 0(1) Given
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
