Meeting 05: Recursion - Part I
Today we will introduce the notion of recursion.
- Introduction to recursion
- Warmup
- Examples
- Exercise: Recursive Egyptian Powers
Links
In-class Exercise: Egyptian Powers
Write a recursive function implementing the Egyptian Powers algorithm.
- Download the starter code
- In the file
powers.cpp
implement the recursive Egyptian Powers algorithm.
- Build your code locally as you work and test using the supplied Catch tests.
- Submit your
powers.cpp
file via Canvas at the Assignment "Exercise for Meeting 5".