Skip to content

phoyh/aoc-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains my revised solutions to the 2021 Advent of Code puzzles in JavaScript.

The top ingredients to these solutions are:

  • My original code - optimized (i.e., rushed) for minimal time-to-submission.
  • Deeper insights into the problem domain - gathered by pondering on the puzzle after submission.
    • This might improve the complexity class of the algorithm.
  • Thorough refactoring aiming at clean code.
    • The solution is transformed into unit tests (for each star at least one test case).
    • DRY: Recurring logic is extracted into an API module (which has its own unit tests).
  • A final double-check with the ideas floating around on the subreddit is also helpful. I might pick up some ideas from there.

My puzzle inputs are not part of this repository, as stipulated by the rules. Instead, they reside in a private submodule.

In case you wonder, I moved to Python from 2022 on (solutions here). My 2021 personal statistics (times, ranks, scores) are found here.

About

Javascript solutions to Advent of Code puzzles, https://adventofcode.com/

Topics

Resources

Stars

Watchers

Forks