Update code to use advent lib.

This commit is contained in:
2020-12-05 16:06:51 -08:00
parent e9d0701b4c
commit 479b1d745e
7 changed files with 14 additions and 6 deletions

2
day5g.cr Normal file
View File

@@ -0,0 +1,2 @@
i=File.read_lines("day5.txt").map &.tr("FBLR", "0101").to_i32(2);
puts({i.max,(i.min..i.max).select{|n|!i.includes? n}})