Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
recursion
the things which are done by recursion can also be done using map and filter,then what so special about this recursion??
1 ответ
+ 5
1. It reduces time complexity of program.
2. For some problems it makes the algorithm a little easier.
3. It is an optimized way of implementing a number of nested loops.
4. Easier to debug.