← Back to course
Python 11-12 / Week 10
Week 10

Recursion

// A base case, a smaller call, and a stack of calls to trace

A recursive function calls itself. It needs a base case that stops it and a recursive call on a smaller problem. Each call has its own local variables, and the calls wait for each other like a stack. FieldSim gains recursion.py: countdown, a recursive total, recursive binary search, merge sort and a count of the cells Pip can reach.

DAYS THIS WEEK

MONDAY

Monday

22 blocks · 5 graded

TUESDAY

Tuesday

23 blocks · 3 graded

WEDNESDAY

Wednesday

26 blocks · 4 graded

THURSDAY

Thursday

23 blocks · 4 graded

FRIDAY

Friday

26 blocks · 3 graded

MISSION QUEST

Mission Quest

8 blocks · 2 graded

← All weeks 📊 Week review →