Skip to content

Topener/adventofcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

Hi all!

My AdventOfCode is node.js based.

To run any day, type node index.js <day#> and it will execute the day you inputted. Make sure you fill the relevant input.txt file with the input for that day if you want to see your own code.

The current main branch is 2021, but my code from last year is also available in branch 2020. I didn't get further than day 10 yet though.

For 2020: Step into each day folder and run node program.js to run it.

In any solution you can replace my input.txt with your content and see if it works for yours as well.

I am always curious to better solutions, so feel free to PR on an existing day any improvements to the code. As long as they're actually improvements, not just for the sake of shorter. My code should be production-deployable (in my mind) so they should be easily readable.

For this purpose, also read my article about 1-liners. I would say I prefer longer code as long as it is readable. If something can be faster, then of course it should be.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy