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

A migrating bird flies 420 miles in 12 hours . How many miles does it fly in 7 hours
Sammy drew a rectangle that was w inches wide. The expression 2(2w) + 2(w) represents the perimeter of the rectangle that Sammy drew. Which statement relates th
What does it mean to be as fragile as a house of cards? a. easily destroyed or spoilt (This igloo is as fragile as a house of cards; I want to leave before it c
The perimeter of the rectangular shaped building is 960 ft. the shortest side of the building is 150 what is the length of one of the longest sides of the buil
the job the part does within organism is the
what flashlight battery is an example of a
what is the type of material that doesn't allow heat to be conducted easily
what is the equation of the slop (0,2) (2,5)
which of the following software programs provides for e-mail communication
why is Europe called the peninsula of peninsulas?