Here are my golfed solutions to Advent of Code 2022.
All programs read data from the standard input stream and outputs answers to the standard output stream. This makes very easy to run programs with different set of input tests, using <
in the shell:
ruby solver.rb < test0.in
⛳ 4/50
Problem | Part 1 | Part 2 |
---|---|---|
Day 1: Calorie Counting | 38 | 45 |
Day 2: Rock Paper Scissors | 33 | 38 |