module DayThree

Defined in:

aoc2022/day_three.cr

Constant Summary

PRIORITY = ([' '] + ('a'..'z').to_a) + ('A'..'Z').to_a

Constant of character priorities. a through z have a priority of 1 through 26 respectively. A through Z have a priority of 27 through 52 respectively. The space is going to represent 0.

Class Method Summary

Class Method Detail

def self.part_one(input : String) #

[View source]
def self.part_two(input : String) #

[View source]