## Please write a function named factorials(n: int), which returns the factorials of the numbers 1 to n in a dictionary. ## The number is the key, and the factorial of that number is the value mapped ...
Python solution of problems from LeetCode.