davidbaker3780 davidbaker3780
  • 11-01-2024
  • Computers and Technology
contestada

Consider the following algorithm:
def my_algorithm (N) :
A=[]
for i in range (N) :
B=[]
for j in range (N) :
B.append (i+j)
A.append(B)
return A
What is the running time of my_algorithm?
a. O(n)
b. O(1)
c. O(log(n))
d. O(n ² )

Respuesta :

Otras preguntas

Logan is building a game room adjacent to his living room so that both rooms will have the same with he created a model on a piece of paper as shown below. Part
What ways do enzymatic catalysts increase the rates of reactions?
can somebody please define "International Relations"?​
sin97cos43+cos97 sin43
What does ā stand for in medical abbreviations?
Select True or False for the following statements about Heisenberg's Uncertainty Principle.
Digestion includes breaking substances into their simpler building blocks. True or False
meaning of geeky and in sentence​
is pie a whole number​
12514488 were expressed as an integer, how many consecutive zeros would that integer have Ammediately to the left of its decimal point? (A) 22 (B) 32 (C) 42 (D)