How does one dictionary that remembers answers already computed collapse eleven million Fibonacci calls into sixty-five?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
The memo d arrives in the state the video starts it in: the two base cases, and nothing else. Fibonacci of 3 is not in it yet.
Work out Fibonacci of 3 from the two values already sitting in d — build it out of the stored entries rather than typing the answer as a literal — then store it in d under the key n. Assign the updated dictionary to memo.