View on GitHub

advent-of-code-2024

Readable Advent of Code 2024 algorithms and solutions in C language

Day 22: Monkey Market

Let $S$ be a set and $m\in\mathbb{Z}$.

Part A

Algorithm:

Time complexity: $O(\lvert S\lvert\cdot m)$.

Space complexity: $O(1)$.