AdventOfCode-2020/day5g.cr

3 lines
121 B
Crystal
Raw Normal View History

2020-12-05 16:06:51 -08:00
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}})