+ 1

What are some other recursive functions apart from factorial in C++?

Can you give some examples with their codes?

1st Feb 2018, 5:40 AM
Aakriti Garg
5 Antworten
+ 4
For example, for Fibonacci numbers. In general, you can replace any loop with recursion :)
1st Feb 2018, 5:55 AM
Petr Leliaev
Petr Leliaev - avatar
+ 2
Searching directories or other tree like structures can often be done recursively.
1st Feb 2018, 6:37 AM
Jesse Bayliss
Jesse Bayliss - avatar
0
https://code.sololearn.com/cQZ3qUkqPAzF/?ref=app Here's an example of recursion at work!
13th Feb 2018, 4:06 PM
Aaron Becker
Aaron Becker - avatar