A lot of real-world problems can be broken down into smaller variations of themselves, so you can use recursion to solve them. You’ll see how you can use iteration and then recursion to help Santa Claus deliver presents.
Iterative solutionSanta Claus goes to each house, delivers the presents, and continues on to the next house:
Recursive solutionSanta Claus designates all the work to one elf. That elf follows these rules:
You’ll go through the code for this solution in the third lesson in this course.
To download the code in this course, click the link below:
To download the slides in this course, click the link below:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4