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

where does y=2x-3 and y=-x+3 intersect?
An experiment consists of rolling two fair number cubes. What is the probability that the sum of the two numbers will be 8? Express your answer as a fraction in
how did daoism differ from confucianism?
Find CD if C(0,3) and D(4,7)
what did karl marx do for the russian revolution?
What is the perimeter of rectangle ABCD on the coordinate plane?
log(x+3)(2x+3)+log(x+3)(x+5)=2
What is the advantage of buying a magnetic bulletin board
What type of rhyme is used by Edgar Allen Poe in these line from "The Raven?" An so faintly you came tapping, tapping at my chamber door, That I scarce was sur
suppose you have the job of assigning the proper number of house of representatives seats for various states. to do that must know the in that state.