+ 3
Are there any use of it other than calculating the factorials?
4 Answers
+ 4
year for example we can used that in algorithm of search
+ 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
+ 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.
+ 1
recursion can also be used to solve the problem of "tower of Hanoi"