V
V
Ventus2019-12-14 15:28:40
recursion
Ventus, 2019-12-14 15:28:40

What is the difference between an iterative process and a recursive process?

I started solving problems using recursion in JavaScript and found that there is a division into iterative and recursive processes. Previously, I always referred everything simply to recursion. I started reading articles - in theory it seems to be clear, but as soon as I write my own code or read someone else's, I can't determine at all which process it belongs to.
How easy is it to find a recursive solution to a problem? How to determine if a problem is solved by a recursive process or by an iterative process?
Yes, I know it sounds weird. I myself am at a loss: I seem to be solving problems, but I can’t determine this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2019-12-14
@le2xx

the answer is here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question