Top Level Namespace
Defined in:
Constant Summary
-
REQUIRED_PASSPORT_KEYS =
["byr", "iyr", "eyr", "hgt", "hcl", "ecl", "pid"]
-
TREE =
'#'
Method Summary
- all_answers(answer_lines : Array(String)) : Set(Char)
- count_gaps(input_numbers : Array(Int32)) : Hash(Int32, Int32)
- count_tress(hill, movement : Vector)
- find_summing_range(all_numbers : Array(Int64), target : Int64) : Array(Int64)
- first_bad_number(all_numbers : Array(Int64), preamble_length : Int32) : Int64
- first_bad_number(all_numbers : Iterator(Int64), preamble_length : Int32)
- fix_instruction(program, fix_position)
- fix_program(program : Array(String))
- input_data
- input_numbers
- intersection_of_answers(answer_lines : Array(String)) : Set(Char)
- is_sum_of_two_previous(number : Int64, previous_numbers : Array(Int64))
- line_processor(raw_line : String) : Hash(String, String) | Symbol
- numberish(numberlike : String) : Int32
- parse_line(line : String) : NamedTuple(bag: String, should_contain: Array(NamedTuple(colour: String, count: Int32)))
- parse_line(raw_input)
- part_two_sol(seat_numbers)
- validate_part_one(line : Line)
- validate_part_two(line : Line)
Method Detail
def parse_line(line : String) : NamedTuple(bag: String, should_contain: Array(NamedTuple(colour: String, count: Int32)))
#