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

Is it true dat 2+2=5
I will give brainliest! to whoever answer it and has a explanation. lol
Breifly explain the events involved in the invention of photography FAST
When the chemical name of a compound is being written, the subscripts will determine the symbols. elements. prefixes. suffixes.When the chemical name of a compo
How do I solve for w?
After watching this video, Blake, a student in an introductory physics class, makes the following claim: The acceleration and velocity of the glider are both mo
What is the point of gathering research for an explanatory essay? prove an argument expand a topic build an argument prove someone else wrong
4. An expression is shown. 2 (a + b)-C Select all the descriptions that apply to each part of the expression.
Plz help me !!!!!!!!!!!!!
Who is the first president of Nepal​