Question: (1) Calculate the space complexity for the below program.(Take value of n1=16. n2-10) b=0 (25 marks) b1=1:1 n1=int(input(Enter the number:)) n2=int(input(Enter the number:)) TED (list

 (1) Calculate the space complexity for the below program.(Take value of

(1) Calculate the space complexity for the below program.(Take value of n1=16. n2-10) b=0 (25 marks) b1=1:1 n1=int(input("Enter the number:")) n2=int(input("Enter the number:")) TED (list of floats) LED (list of integers) for i in rangeln 1) Lappend() p+=LC for jin range(n2): T.appendo p1+=TO for i in range(x): Lappend) p1+=L10 print(p+7) print(p1+5) (ii) Calculate the worst time complexity when the average case is 248.5 ms and the worst case is 294.57 ms. (HE) What is the disadvantage of using Arrays in Python? (1 mark) 1 A B

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!