module Day19

Included Modules

Extended Modules

Defined in:

day19.cr

Constant Summary

BIG_N = 100000000
DECODES = Day16::OpCode.values.map do |x| ({x.to_s.downcase, x}) end.to_h
SMALL_N = 2

Instance Method Summary

Instance methods inherited from module Day

run run, test1(input) test1, test2(input) test2

Instance Method Detail

def parse(str) : Day16::Operation #

[View source]
def part1(input) #

[View source]
def part2(input) #

[View source]
def simulate_steps(cpu, program, jump_reg, n) #

[View source]
def try_optimize(cpu, prev_state, program, jump_reg, tick) #

[View source]