2020-11-24 06:10:27 +00:00
|
|
|
# AdventOfCode2020
|
|
|
|
|
|
|
|
My (attempted) solutions to [Advent of Code 2020](https://adventofcode.com/2020) in Elixir.
|
|
|
|
|
2020-12-09 11:03:34 +00:00
|
|
|
<img width="975" alt="image" src="https://user-images.githubusercontent.com/498229/101621087-a71a8c00-3a58-11eb-9cf5-ca816dbba6ee.png">
|
2020-11-25 06:33:09 +00:00
|
|
|
|
2020-11-24 06:10:27 +00:00
|
|
|
## Strategy
|
|
|
|
|
2020-12-03 09:46:19 +00:00
|
|
|
If this year is like 2018, the last time I did this, each problem will be split into two parts.
|
|
|
|
The second part can result in considerable refactoring of the first part, so I will split each part into its own file, like this:
|
2020-11-24 06:10:27 +00:00
|
|
|
|
|
|
|
* `day1/`
|
2020-12-03 09:46:19 +00:00
|
|
|
* `day1part1.exs` - solution to part 1
|
|
|
|
* `day1part2.exs` - solution to part 2
|
|
|
|
* `README` - my summary and notes relating to the day's problem
|
|
|
|
* `input` - input file downloaded from Advent of Code (if applicable)
|
2020-11-24 06:10:27 +00:00
|
|
|
|
|
|
|
If I get stuck, my instinct is to be persistent and take as long as it takes to solve the problem.
|
|
|
|
However I think this year I don't want the pressure of days piling up and this is supposed to be fun,
|
|
|
|
so I will probably limit each problem to one day, and then come back to those that I had problems with later.
|
|
|
|
|
|
|
|
**No checking other people's solutions** until I've solved it myself - or otherwise given up.
|
2020-12-06 02:54:31 +00:00
|
|
|
If I make any refinements as a result of seeing other people's solutions or reading forums, etc., I will
|
|
|
|
commit them to a separate file to leave the original version in tact.
|