+ 1
What are some other recursive functions apart from factorial in C++?
Can you give some examples with their codes?
5 odpowiedzi
+ 4
For example, for Fibonacci numbers. In general, you can replace any loop with recursion :)
+ 2
Searching directories or other tree like structures can often be done recursively.
0
https://code.sololearn.com/cQZ3qUkqPAzF/?ref=app
Here's an example of recursion at work!