You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kegan Myers 599fed6e10 solve 2018d6 and 2020d14 1 month ago
data solve 2018d6 and 2020d14 1 month ago
lib solve 2018d6 and 2020d14 1 month ago
solutions solve 2018d6 and 2020d14 1 month ago
.editorconfig initial commit 1 month ago
.gitignore initial commit 1 month ago
README.md initial commit 1 month ago
index.js initial commit 1 month ago
testAll.js solve 2018d6 and 2020d14 1 month ago

README.md

Advent of Code

This repository contains solutions to advent of code problems in JavaScript.

Methodology

I have a few ideas I am following with these solutions:

  • Don’t use any 3rd-party libraries (don’t yarn add anything, don’t even make a package.json)
  • Use as few node modules as makes sense (sure, use crypto, child_process, and fs, but don’t use assert)
  • Build a collection of helpers in the “lib/” folder that helps to solve the problems quickly and concisely
  • Try, but not too hard, to make single-statement solutions

The most interesting thing written to service these goals is something called “Glib” (Generator library), which is similar to lodsh/lazy.js and built using generators to allow for lazy and intermediate-free operation (as much as possible). It also uses BigInts throughout, because why not.

License

This code is currently not issued under any open source license and the author (Kegan Myers aka terribleplan) reserves all rights. Feel free to peruse the repo, but this is my OC, don’t steal until I choose a license. It’ll probably be BSD/ISC/MIT or similar at some point.