input: from typing import List
  
  def calculate_factorial(numbers: List[int]) -> List[int]:
      """ Calculate the factorial for each number in the given list of integers.
      >>> calculate_factorial([0, 1, 2, 3])
      [1, 1, 2, 6]
      >>> calculate_factorial([5, 10])
      [120, 3628800]
      """
output:     result = []
      for num in numbers:
          if num == 0 or num == 1:
              result.append(1)
          else:
              factorial = 1
              for i in range(2, num + 1):
                  factorial *= i
              result.append(factorial)
      return result