Some of us at DNSimple are doing the 2021 Advent of Code together.
I chose to implement my solutions in C++ as I want to learn the language.
I also chose to re-implement some solutions in Clojure as I want to brush up on the language.
You can compile any C++ example by changing into the directory for the day and typing make
.
You can run any C++ example by changing into the directory for the day and using bin/filename args
where args
is replaced with pairs like :filename data.txt
.
You can run any Clojure example by changing into the directory for the day and using clj -X packagename/run
where package name is the name of the source file without the .clj
extension. For example, in day1 you'd run clj -X p1/run
to run the first part of the problem from day 1.
Here are some of the sites I'm learning C++ from:
Plus a lot of searching on Duck Duck Go.