diff --git a/day_16.rb b/day_16.rb new file mode 100644 index 0000000..1871a80 --- /dev/null +++ b/day_16.rb @@ -0,0 +1,520 @@ +regex = /Sue (\d+): (.*)/ +sues = Hash[DATA.read.scan(regex).map { |attrs| + [attrs[0], Hash[attrs[1].split(", ").map {|i| i.split(": ") }]] +}] +facts = Hash[<