Day 15: Rambunctious Recitation

Data:

LAST_STEP

The last relevant step of the game

Functions:

solve(starting_numbers)

Play the memory game starting with the starting_numbers to``LAST_STEP``.

LAST_STEP = 2020

The last relevant step of the game

solve(starting_numbers: List[int]) int[source]

Play the memory game starting with the starting_numbers to``LAST_STEP``.

Requires
  • len(starting_numbers) > 0

Ensures
  • 0 <= result <= LAST_STEP - 2