If iterative and recursive factorial are both Theta(n), why does the timing table grow faster than linear once the numbers get large?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
The function below is the video's fact_iter, extended to return the factorial and a counter passes. The counter never moves yet. Add one line so that passes counts every trip through the loop, keeping the function name fact_iter_passes(n).