Question: What is the big O notation for the following code: def f(nums): for i in range (1en (nums)): if i >=len (nums) // 4:
What is the big O notation for the following code: def f(nums): for i in range (1en (nums)): if i >=len (nums) // 4: print("hi") else: for j in range (len (nums)): print (nums[j])
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
To determine the Big O notation of the provided code we should analyze the different parts of the co... View full answer
Get step-by-step solutions from verified subject matter experts
