AoC2022::Day25
Inherits AoC2022::Solver < Reference < Object
Constants
BASE5_SNAFU = {'0' => {'0', false}, '1' => {'1', false}, '2' => {'2', false}, '3' => {'=', true}, '4' => {'-', true}, '5' => {'0', true}}
SNAFU_VALUES = {'=' => -2_i64, '-' => -1_i64, '0' => 0_i64, '1' => 1_i64, '2' => 2_i64}
Constructors
new(input : String)
SourceInstance methods
part1
Sourcepart2
Source