Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Quote from "Groaking Algorithms":
"Loops can speed up a program. Recursion can speed up a programmer. Choose what is more important in your situation!" Leigh Caldwell
Recursion or Iteration?
Recursion is expressive. The code of complex algorithms using recursion comes out more compact and more natural than using iteration.
In principle, you can not use cycles. Do not use your functions.
All these are language features, tools that greatly speed up development.
It cannot be said that a hammer is better than a screwdriver just because a self-tapping screw can be driven in with a hammer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question