class Aoc::Day25

Defined in:

day/25.cr

Instance Method Summary

Instance methods inherited from class Aoc::Day

first(input : Array(String)) first, second(input : Array(String)) second

Instance Method Detail

def find_loop_size(public_key) #

[View source]
def first(input) #

transform(7, card_loop_size) = card_public_key transform(7, door_loop_size) = door_public_key

transform(door_public_key, card_loop_size) = transform(card_public_key, door_loop_size) = encryption_key


[View source]
def second(input) #

[View source]
def transform(subject, loop_size) #

[View source]