My (attempted) solutions to Advent of Code. https://adventofcode.com/
Go to file
Adam Millerchip cfdb8ef33e Day 21 Parts 1 and 2 2020-12-30 06:10:46 +09:00
day1 Add simpler implementation for Day1 2020-12-01 16:48:01 +09:00
day2 bool != bool is xor 2020-12-02 16:30:38 +09:00
day3 Add note about tracking y distance 2020-12-03 14:44:50 +09:00
day4 Remove an unneeded Enum.map 2020-12-04 15:58:50 +09:00
day5 Move alternative Day5 impl to separate files 2020-12-06 11:42:48 +09:00
day6 Add Day 6 better implementation notes 2020-12-06 16:39:18 +09:00
day7 Add comments for clarity 2020-12-08 12:47:57 +09:00
day8 Regex was overkill 2020-12-09 01:19:36 +09:00
day9 Clarify part 1 strategy 2020-12-10 00:36:55 +09:00
day10 Add refactored Day 10 Part 2 for clarity. 2020-12-11 23:38:03 +09:00
day11 Day 11: remove debug code, simpler datastructure 2020-12-11 19:24:59 +09:00
day12 Day 12 Parts 1 and 2 2020-12-12 16:25:20 +09:00
day13 Forgot to add answer to Day 13 Part 1 2020-12-16 03:47:17 +09:00
day14 Day 14 Part 2 2020-12-15 14:00:41 +09:00
day15 Better variable names, extract next_num function 2020-12-16 09:09:58 +09:00
day16 Remove one more unneeded map 2020-12-18 12:36:08 +09:00
day17 Day 17 Parts 1 and 2 2020-12-21 12:10:01 +09:00
day18 Add forum link to nice implementation for day 18 2020-12-21 12:22:41 +09:00
day21 Day 21 Parts 1 and 2 2020-12-30 06:10:46 +09:00
day23 Remove unneeded insert 2020-12-26 02:37:33 +09:00
day24 Day 24 Parts 1 and 2 2020-12-24 23:21:06 +09:00
day25 Day 25 Part 1 2020-12-25 16:45:16 +09:00
template Template: inspect output by default 2020-12-12 19:46:22 +09:00
README.md Day 23 Parts 1 and 2 2020-12-26 02:09:13 +09:00

README.md

AdventOfCode2020

My (attempted) solutions to Advent of Code 2020 in Elixir.

image

Strategy

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:

  • day1/
    • 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)

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. 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.