Skip to content

pin2t/aoc2021

Repository files navigation

Advent of Code 2021

This repository stores small programs which solves Advent of Code 2021 puzzles. Using two languages (Go and Java) just for fun and comparison. In .txt files my input from adventofcode.com. Yours will be different.

Running go solutions

go run 1.go input.go math.go < inputs/1.txt

Running java solutions

First compile dependency

javac Scanner.java

Then run

java d1.java < inputs/1.txt

Works for Java 17+ only

Running ruby solutions

ruby 1.rb < inputs/1.txt