Write the cell first
transcript
A table problem looks like a maze. Do not start with the loop. Write one sentence about a cell first. It decides everything else.
A cell answers one question. It is about one prefix or one corner. It reads only cells that are already filled.
Digits one, three, one, seven. The limit is one hundred. Cell zero is one. The empty prefix has one split. Cells one and two are one and two. Cell three is three, and cell four is five.
Fill the cells that a cell reads first. Then fill the cell that reads those cells. The answer sits in the last cell filled.
Two facts in one number cause bugs. Give each fact its own table.
With a limit of one hundred, there are five splits. With no limit, there are eight.
Say what one cell means, in one sentence. Then the loop is easy to write. Full breakdown in the lecture.