Question: 1. Consider the following function. def q1(L): n = len(L) count = 0 for i in L: if i max (L) or i <

1. Consider the following function. def q1(L): n = len(L) count = 0 for i in L: if i max (L) or i < 0: == count return count count + 1 a. What is the Big-O running time bound for ql in terms of n, where n == len(L)?
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
To analyze the BigO running time bound for the function q1 in terms of n where n lenL lets bre... View full answer
Get step-by-step solutions from verified subject matter experts
