New project, new language, new Advent of Code in Go! To see the original tasks for all days and previous years, visit https://adventofcode.com/. All credits to them for this nice work!
- Year 2019 in Elixir: https://github.com/arxeiss/advent-of-code-2019
- Year 2021 in PHP: https://github.com/arxeiss/advent-of-code-2021
- Year 2022 in PHP: https://github.com/arxeiss/advent-of-code-2022
See each day for more information. I copied the instructions there as well.
- Install Go: https://golang.org/doc/install
- Clone this repo
- Run:
- With makefile:
make run
and program will ask you which puzzle to run - Run all tests with
make tests
- Run program with specified day and puzzle part:
go run . [day] [part]
- With makefile:
I was able to manage all day's puzzles to get all 50 stars
. But it wouldn't be possible without some help from friends or the community. Some days I had trouble understanding the task, to understand what I should do. Some days I managed to do the test input, but it was too slow for real input. Or someday I just had no idea how to do it.
- YouTube channel of TurkeyDev, was a big help when I got really stuck
- My friend Kobzol, who helped me with performance during the days, when my code was slow.
- The people on AoC Reddit for getting some hints.
- Day 13 was the first struggling day. I had no idea about the Chinese Remainder Theorem. Thanks TurkeyDev for the hint and see Day 13 for more info and study material.
- On Day 16, I was implementing part 2 completely wrong, I had to use code from CodingNagger as a debugger to find, where my mistake is. And also the inspiration.
- The task for Day 17 wasn't clear for me. I used Reddit hints to understand what I should do.
- Day 18 was really time-consuming. I wanted to do it the right way, not just the working way for AoC. Should be done properly with the Shunting-Yard algorithm.
- Day 19 works just accidentally, see Reddit Post
- I failed totally with Day 21. My code was totally wrong and I had to get inspiration on how to start the elimination and then start from scratch.
- Day 23 I used the help from Kobzol, as he suggested me to use the combination of
LinkedList
andHashMap
. Otherwise, it would take many hours to solve. - And maybe some more, I just don't remember now.
- Day 1: Report Repair
- Day 2: Password Philosophy
- Day 3: Toboggan Trajectory
- Day 4: Passport Processing
- Day 5: Binary Boarding
- Day 6: Custom Customs
- Day 7: Handy Haversacks
- Day 8: Handheld Halting
- Day 9: Encoding Error
- Day 10: Adapter Array
- Day 11: Seating System
- Day 12: Rain Risk
- Day 13: Shuttle Search
- Day 14: Docking Data
- Day 15: Rambunctious Recitation
- Day 16: Ticket Translation
- Day 17: Conway Cubes
- Day 18: Operation Order
- Day 19: Monster Messages
- Day 20: Jurassic Jigsaw
- Day 21: Allergen Assessment
- Day 22: Crab Combat
- Day 23: Crab Cups
- Day 24: Lobby Layout
- Day 25: Combo Breaker