Ask Question

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

+3
Answers (1)
  1. 23 December, 00:37
    0
    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)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which repetition approach is less efficient a loop or a recursive function why? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers