Skip to main content

Module day24

Module 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. The grid is much wider than it is tall, so we transpose it and store each column as bits in a u64, one bit per row. We further optimize by memoizing the position of vertical blizzards as they repeat every height minutes.

Structsยง

Basin ๐Ÿ”’

Functionsยง

expedition ๐Ÿ”’
parse
part1
part2

Type Aliasesยง

Input ๐Ÿ”’