Expand description
ยงFactory
Structsยง
Constantsยง
- MAX_
BUTTONS ๐ - MAX_
JOLTAGES ๐
Functionsยง
- configure_
joltages ๐ - Convert the buttons and joltages to simultaneous equations, then use Gaussian Elimination to reduce (the up to 13) dimensions of the full solution space to a (between 0 and 3) dimensional subspace of only the free variables.
- configure_
lights ๐ - Check all patterns with one set bit, then patterns with two set bits, and so on, returning early as soon as we find a match without checking all possible combinations.
- gaussian_
elimination ๐ - parse
- parse_
machine ๐ - Convert light patterns and buttons to bitmasks to speed up part one.
- part1
- part2
- recurse ๐
Type Aliasesยง
- Column ๐