Module aoc::year2022::day24

source ·
Expand description

§Blizzard Basin

Similar to the previous day we represent the position of elves and blizzards as bits in an integer in order to efficiently compute the next minute.

We further optimize by memoizing the position of blizzards as they repeat every width minutes for horizontal and every height minutes for vertical.

Structs§

Functions§