Advent of Code 2020: Day 13 (Ruby solution)
Today's puzzle is not so easy.
The first task is about finding the closest arrival timestamp knowing how often each bus courses. This part is trivial:
file = File.read('inputs/day13.txt')
timestamp = file.lines.first.to_i
bus_lines = file.lines.last....
rubywizards.com2 min read