This week, we talked about the key terms that you should add to your UltraSheets for future midterm prep. We also discussed the practice problems found in slides.pdf.
All solutions can be found in the solutions.py file, paired with descriptive comments and writeups for each problem.
All solutions provided are provided outside of FSG hours, and are not endorsed neither by the UTM RGASC nor the CSC148H5 Course Staff. These solutions are meant to be used as a reference, and not a replacement for the problem solving process. Use at your own risk. You are encouraged to attend office hours and ask questions during lectures if there are any parts of the solution that you do not understand. Should you find anything that is incorrect, please open an issue on this repository and I will address it as soon as possible.
If you're struggling with the homework question, before looking at the solution try reading the following
Recall in MAT102, we defined an even number as a number in the form
In other words: If we recurse an odd number of times, which function do we end up in (The original or the helper function)? If we recurse an even number of times, which function do we end up in?