Collection of my solutions to the Advent of Code problems. 🎄
Day | Stars |
---|---|
01 | ⭐⭐ |
02 | ⭐⭐ |
03 | ⭐⭐ |
05 | ⭐⭐ |
06 | ⭐⭐ |
07 | ⭐⭐ |
08 | ⭐⭐ |
09 | ⭐⭐ |
10 | ⭐⭐ |
11 | ⭐⭐ |
12 | ⭐⭐ |
13 | ⭐⭐ |
14 | ⭐⭐ |
15 | ⭐⭐ |
16 | ⭐⭐ |
17 | ⭐⭐ |
18 | ⭐⭐ |
19 | ⭐⭐ |
20 | ⭐ |
21 | ⭐ |
22 | |
23 | ⭐ |
24 | |
25 |
Simply open a terminal and run:
go run main.go -day $day -sample=true
-day int
Specify the day you want to solve (default -1)
-sample
Specify wether you want to use sample [true] or the full [false] input (default true)
Simple run: go test ./...
Get coverage: go test ./... -coverprofile cover.out
View the coverage: go tool cover -html=cover.out
Language: Go
Day | Stars |
---|---|
01 | ⭐⭐ |
02 | ⭐⭐ |
03 | ⭐⭐ |
04 | ⭐⭐ |
05 | ⭐⭐ |
06 | ⭐⭐ |
07 | ⭐⭐ |
08 | ⭐⭐ |
09 | ⭐⭐ |
10 | ⭐⭐ |
11 | ⭐⭐ |
12 | ⭐⭐ |
13 | |
14 | ⭐⭐ |
15 | ⭐⭐ |
16 | |
17 | ⭐ |
18 | ⭐⭐ |
19 | |
20 | ⭐⭐ |
21 | ⭐ |
Attempted in Kotlin
Day | Stars |
---|---|
01 | ⭐⭐ |
02 | ⭐⭐ |
03 | ⭐⭐ |
04 | ⭐⭐ |
05 | ⭐⭐ |
06 | ⭐⭐ |
07 | ⭐⭐ |
08 | ⭐⭐ |
09 | ⭐⭐ |
10 | ⭐⭐ |
11 | ⭐⭐ |
12 | |
13 | |
14 | ⭐ |
Attempted to use Rust, not very succesfull.
Day | Stars |
---|---|
01 | ⭐⭐ |
02 | ⭐⭐ |
03 | ⭐⭐ |
04 | ⭐⭐ |
05 | ⭐⭐ |
06 | ⭐⭐ |
Also in Go, see 2022.
Day | Stars |
---|---|
01 | ⭐⭐ |
02 | ⭐⭐ |