22a. Learn Recursion
Important ideas to help you learn recursion.
Important ideas to help you learn recursion.
Introduction to recursion using Fibonacci numbers.
Counting the digits in a number.
Sum the digits in a number.
Making useful examples. Reading code. Practice problems using quotient and remainder to work through the digits of a number.
More practice problems using quotient and remainder to work through the digits of a number.
Sum of Fibonacci numbers.
Many more recursion practice problems.
Short review question.
More practice: sum of sevenths, sum of y-coordinates on a parabola.
A short summing practice problem.
Exercises involving recursive functions with helper functions.
Quiz practice: hawaiian-earring, double-ss, math-mess.
First quiz on recursion: reciprocal-squares, blank-vowels, hollow-diagonal.
A quiz on recursive functions.
A presentation with exercises involving recursion on strings.
Real introduction to helper functions in recursion.
A complete lecture on count-divisors.
Even more recursion practice.
A brief quiz to make sure you understand recursion.
Change penguin to penguins and mouse to mice in zoo-1, sum5, double-middle.
fib and num-digits
ex-it, unlucky
Ice cream quiz.
count-w, powers of 7, double zero
r-ss - does a word have r or ss?, no-7, abfx - all but first x becomes a y.
A harder quiz based on the skills we have learned: english-q
ssm, pairorder
Make the classic game of hangman.