Can I read 12 Recursion on EtoBox?
12 Recursion by Satyender Rahul Mishra is a document available to read on EtoBox.
What is 12 Recursion about?
Recursion is useful for problems that can be represented by a simpler version of the same problem. We can express the factorial function as follows: if n = 1, return 0; / / no one to shake else return handshake(n-1) + n-1; . If there are three persons, treat it as having one more person added to the two persons, and shakes hands with them (2 extra handshakes)
- Author
- Satyender Rahul Mishra
- Language
- EN