Skip to content

radarek/advent-of-code-2022-codegolf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2022 ⛳

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. You can pass file with stdin using < in the shell. Or pass filename as parameter or pass content with | pipe.

ruby solver.rb < test0.in
ruby solver.rb test0.in

or

echo "A X\nB Z" | ruby solver.rb

Progress

⛳ 12/50

List of problems and results (code length in bytes)

Problem Part 1 Part 2
Day 1: Calorie Counting 38 45
Day 2: Rock Paper Scissors 33 38
Day 3: Rucksack Reorganization 54 51
Day 4: Camp Cleanup 52 50
Day 5: Supply Stacks 190 182
Day 6: Tuning Trouble 42 44