Practising my acquired knowledge of go.
The goal is to solve each day's problems while learning a bit of go, not to
come up with the optimal, cleanest solutions.
For each day, copy the template/ directory and create a dayXX/ directory.
Make sure to modify the package name, and in main.go replace the previous
day's import.
# Include debug logs
go run debug main.go a 01
# Release mode
go run r main.go a 01go test ./dayXXAnd some notes of what I learned
- Day1
- Day2 -
appendmodifies the original slice - Day3
- Day4 - make sure to copy slices as there are hacky ways in which my slices can be modified due to reallocations
- Day5
- Day6 - oh so we cannot place obstacles in positions that the guard has already checked but is facing away from?
- Day7
- Day8
- Day9
- Day10
- Day11
- Day12
- Day13
- Day14
- Day15
- Day16
- Day17
- A
- B - I am a bit lazy to do this one
- Day18
- Day19
- Day20
- Day21
- Day22
- Day23
- Day24