adventofcode.com solutions in Go (by alexchao26)

Similar projects and alternatives to advent-of-code-go
• ### aoc2020

learning python👨‍💻: my Advent of Code 2020 solutions

My solutions for Advent of Code

• ### aoc

🎄 My solutions and walkthroughs for Advent of Code (https://adventofcode.com) and more related stuff.

:christmas_tree: Advent of Code 2020: Solutions in Kotlin

• ### aoc-2020

Advent of code 2020 in Python and Rust

• ### aoc2020apl

Advent of Code 2020 solutions in Dyalog APL

My Solutions for Advent of Code 2020

My solutions to the Advent of Code, in Free Pascal

• ### aoc-2020-clojure

Advent of code 2020 solutions in Clojure

Done in boring old python

• ### snippets

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better alternative or higher similarity.

## Posts

Posts where advent-of-code-go has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2020-12-28.
• Complete Repo And Thoughts In Comments
Then start coding each piece of the solution. Each piece can be its own function, in which case it's easier to test that a piece is working. It also helps to just run your code every time you finish coding a step, and print some information so you can see if things are working as expected.
• Complete! Repo and Thoughts in Comments
Algos that I’ve seen multiple times in AOC like rotating and flipping a grid, generating permutations.
A lot of people (myself included) use(d) AOC to learn a new language. Learn how things are done in that language instead of falling back to “the way I’d do it in X language.”
Especially writing lots of nested for loops. This becomes part of the norm… time complexity be damned
Sometimes it’s just easier to parse each line as you hit it, instead of preprocessing the whole thing
Tests are almost always a good thing, but with AOC in particular, it’s helpful for testing your assumptions with example inputs, and for more complex problems (looking at elf/goblin) it can be the difference between staring at your code for another hour and finding the bug in 15 minutes.
Things that are annoying to do or remember (when I want to convert something to an int, I mentally say “cast to int”, not string convert ASCII to Int (strconv.Atoi, which returns two values and must be on its own line), so I finally made this cast utility package)
TL;DR Go Repo
• Complete! Go Repo and thoughts [w/ SPOILERS] in the comments
Algos that I’ve seen multiple times in AOC like rotating and flipping a grid, generating permutations.
A lot of people (myself included) use(d) AOC to learn a new language. Learn how things are done in that language instead of falling back to “the way I’d do it in X language.”
Especially writing lots of nested for loops. This becomes part of the norm… time complexity be damned
Sometimes it’s just easier to parse each line as you hit it, instead of preprocessing the whole thing
Tests are almost always a good thing, but with AOC in particular, it’s helpful for testing your assumptions with example inputs, and for more complex problems (looking at elf/goblin) it can be the difference between staring at your code for another hour and finding the bug in 15 minutes.
Things that are annoying to do or remember (when I want to convert something to an int, I mentally say “cast to int”, not string convert ASCII to Int (strconv.Atoi, which returns two values and must be on its own line), so I finally made this cast utility package)
TL;DR Go Repo