Advent of Code 2020 in Nim

0791265 Day 7 Part 2

1 year, 6 months ago

f08c2fb Day 7 Part 1

1 year, 6 months ago


Advent of Code 2020 in Nim.


Install Nim. Clone this repo and execute, e.g. nim compile --run aoc.nim 1 or nim c -r aoc.nim 1 to run the Day 1 solution. Pass the desired day to execute, or 0 to run all days in sequence. It will place the aoc binary in the current directio for subsequent runs with, e.g. ./aoc 1.

These were all written on Linux, and thus assume \n line endings. I may write a cross-paltfrom adapter at some point, but I was able to work on this repo in Windows by editing helpers.nim to look for \r\n instead.