+ 3

Are there any use of it other than calculating the factorials?

9th Apr 2016, 6:56 AM
Burakcan Duzcan
Burakcan Duzcan - avatar
4 Réponses
+ 4
year for example we can used that in algorithm of search
9th Apr 2016, 7:11 AM
Egor Kovalevsky
Egor Kovalevsky - avatar
+ 2
traversing a file structure of unknown size. loop through everything in a folder, if you hit another folder, function calls itself again for that folder
28th Apr 2016, 12:43 PM
Eric Phillips
Eric Phillips - avatar
+ 1
Yes, absolutely. It can be also used to traverse a binary tree. This approach can be easier to implement, especially for particularly large binary trees.
13th Apr 2016, 9:15 AM
Greg Mavhunga
Greg Mavhunga - avatar
+ 1
recursion can also be used to solve the problem of "tower of Hanoi"
10th Jul 2016, 9:29 AM
Aastha Aneja
Aastha Aneja - avatar