+ 2

hello guys, can you tell me about the recursive function? what the benefit if we use the recursive function?

recursive vs iterative syntax function in cpp

12th Apr 2017, 8:30 AM
Luqman Hanafi
Luqman Hanafi - avatar
2 Respostas
+ 1
how it works?
12th Apr 2017, 3:51 PM
Luqman Hanafi
Luqman Hanafi - avatar
+ 5
https://www.sololearn.com/discuss/307407/?ref=app Answer above ;) Basically, it can do powerful stuff with little code - and this last piece is its most important feature. The drawback is though, it's very resource-consuming, often flooding the stack extensively until it's done counting back. Theoretically, each recursion algorithm may be converted to (not always simple) iterations.
12th Apr 2017, 8:47 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar