Question: Please help.. 1. 2. Problem 1 Give the time cost of each line of code or snippet, using big-Oh notation. Assume that n represents the
Please help..
1.

2.

Problem 1 Give the time cost of each line of code or snippet, using big-Oh notation. Assume that n represents the length of the list, or other data structure. Some of these require some thought about what Python has to do. If you are uncertain about your answer, then write down your thoughts - then ask! We'll discuss common questions in class. x = 10 a -b # do we need to know what type b is??? some_list.append (100) foo = other list [1:] for i in some_list: print (i)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
