Illustrate finding the factorial of a given number, which memoizes the intermediate results.
.. literalinclude:: ../../languages/python/algorithm_fact_with_memo.py :language: python :tab-width: 4
.. runcode:: ../../languages/python/algorithm_fact_with_memo.py :language: python :codesite: ideone
.. seealso:: * :python-suggest-improve:`algorithm_fact_with_memo.py` * :python-better-explain:`algorithm_fact_with_memo.rst`