An open API service indexing awesome lists of open source software.

https://github.com/pin2t/aoc2021

Advent of Code 2021
https://github.com/pin2t/aoc2021

advent-of-code-2021 advent-of-code-2021-go aoc2021 coding-challenge go java ruby

Last synced: 2 months ago
JSON representation

Advent of Code 2021

Awesome Lists containing this project

README

          

# 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`