JeaivonShaluvn JeaivonShaluvn
  • 17-05-2017
  • Computers and Technology
contestada

Which repetition approach is less efficient a loop or a recursive function why?

Respuesta :

weber229 weber229
  • 17-05-2017
In general loops are less efficient because they have to go through data one at a time no matter what. Recursion allows you to split the data into smaller pieces each time the function is called. In general terms the efficiency of loops is x and the efficiency of recursion is log(x)
Answer Link

Otras preguntas

Do you think the life of past criminals should be celebrated or shunned? Why?
An example of a quick chemical change is
What is the area of the rectangle?
Solve for x. Need help, Thank you!! Also, i need explanation.
Find the volume of a pyramid with a square base, where the side length of the base is 15.8 ft and the height of the pyramid is 16.9 ft. Round your answer to the
What is the "only good thing" Pip has done since he found out about his great expectations? He apologized to Joe for how he treated him
what is the antonym of forget​
REALLY NEED HELP WITH THIS!! I WILL OFFER BRAINLIEST FOR THE BEST ANSWER! ANY ABSURD ANSWERS WILL BE REPORTED!!
A gas has a volume of 240 mL and a pressure of 0.99 atm. If the pressure is decreased to 0.951 atm, what is the new volume of the gas?
Si 15 obreros construyen un muro en 45 minutos, ¿en cuánto tiempo lo construirán 3 obreros con similar habilidad?