Question: What is the big O notation for the following code: def f(nums): for k in range (len (nums)* len (nums)* len (nums)): i =
What is the big O notation for the following code: def f(nums): for k in range (len (nums)* len (nums)* len (nums)): i = len (nums) while i > 0: print(a[0]) i = 1 // 2
Step by Step Solution
3.38 Rating (145 Votes )
There are 3 Steps involved in it
The Big O notation is used to describe the upper bound of the time complexity of an algorithm in ter... View full answer
Get step-by-step solutions from verified subject matter experts
