npm start
DEBUG=1 npm start
npm run new
Run by modifying index.js
to point to the puzzle you want to execute.
Day 2 requires the use of BigInt which is added to Javascript in ES2020 and I didn't include a polyfill. This limits the solution to Javascript engines with BigInt support
Day 14 is fast but needs more memory to complete. Run node with 4GB of heap space:
node --max_old_space_size=4096 index.js