Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

Topener/adventofcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi all!

My AdventOfCode isnode.js based.

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

To run code using sample code, typenode index.js <day#> sample and it will execute the day you inputted with the sample input. In case of 2 different sample inputs, like day 1, it will automatically find sample2.txt for part 2.

The current main branch is 2023, but code from previous years is also available.

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 readmy 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.


[8]ページ先頭

©2009-2025 Movatter.jp