Skip to content

mackenziestarr/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

2021

language: Rust

cd 2021
cargo run day-XX # e.g. day-01

2020

language: C++20

cd 2020
# run all tests
bazelisk test //...
# run a single day
bazelisk run //src:day-01

2019

language: C++

cd 2019
wget -O third_party/catch.hpp https://github.com/catchorg/Catch2/releases/download/v2.11.0/catch.hpp
make day_<day_num>
make day_<day_num>_test

2018

language: OCaml

setup for osx

brew install ocaml
brew install opam
opam init
opam install ocamlbuild
# add packages installed via opam to PATH
echo export PATH="\$PATH:$HOME/.opam/default/bin" >> ~/.bashrc

compiling an exercise

# assuming cwd contains some_file.ml
ocamlbuild some_file.native
./some_file.native