10 Recursion
5 - 7.5% Exam Weight
5 - 7.5% Exam Weight
What is the base case?
side length < 2cm → done
What is the pattern?
draw a triangle using midpoints of the sides (make a triforce)
then make a sierpinski triangle in the top triangle
then make a sierpinski triangle in the right triangle
then make a sierpinski triangle in the left triangle
What is the base case?
0! → 1
What is the pattern?
Multiply current number by the factorial of the next smaller number.
What is the base case?
The reverse of an empty String is and empty String
What is the pattern?
Concatenate the last letter by the reverse of all the letters before it.
What is the base case?
What is the pattern?
What is the base case?
What is the pattern?