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
- Host: GitHub
- URL: https://github.com/pin2t/aoc2021
- Owner: pin2t
- License: mit
- Created: 2021-12-01T05:19:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-02T07:23:48.000Z (over 3 years ago)
- Last Synced: 2025-03-20T17:19:29.469Z (over 1 year ago)
- Topics: advent-of-code-2021, advent-of-code-2021-go, aoc2021, coding-challenge, go, java, ruby
- Language: Java
- Homepage: https://adventofcode.com/2021
- Size: 206 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`