Top Level Namespace

Defined in:

Constant Summary

REQUIRED_PASSPORT_KEYS = ["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"]
TREE = '#'

Method Summary

Method Detail

def all_answers(answer_lines : Array(String)) : Set(Char) #

[View source]
def count_gaps(input_numbers : Array(Int32)) : Hash(Int32, Int32) #

[View source]
def count_tress(hill, movement : Vector) #

[View source]
def find_summing_range(all_numbers : Array(Int64), target : Int64) : Array(Int64) #

[View source]
def first_bad_number(all_numbers : Array(Int64), preamble_length : Int32) : Int64 #

[View source]
def first_bad_number(all_numbers : Iterator(Int64), preamble_length : Int32) #

[View source]
def fix_instruction(program, fix_position) #

[View source]
def fix_program(program : Array(String)) #

[View source]
def input_data #

[View source]
def input_numbers #

[View source]
def intersection_of_answers(answer_lines : Array(String)) : Set(Char) #

[View source]
def is_sum_of_two_previous(number : Int64, previous_numbers : Array(Int64)) #

[View source]
def line_processor(raw_line : String) : Hash(String, String) | Symbol #

[View source]
def numberish(numberlike : String) : Int32 #

[View source]
def parse_line(line : String) : NamedTuple(bag: String, should_contain: Array(NamedTuple(colour: String, count: Int32))) #

[View source]
def parse_line(raw_input) #

[View source]
def part_two_sol(seat_numbers) #

[View source]
def validate_part_one(line : Line) #

[View source]
def validate_part_two(line : Line) #

[View source]