+ 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
2 Respostas
+ 1
how it works?
+ 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.