Direct link to Google Code Jam site
This solution passes all test set 1 (6 points), test set 2 (10 points) and test set 3 (1 point).
nodejs 11.13.0
First, install dev dependencies (babel, rollup, jest etc) by running the following:
npm install
To run tests:
npm run test
Build the solution into one file output at build/solution.js:
npm run build
build/solution.js is the code to be submitted to Google Code Jam site.
To run and test build/solution.js manually, run the following and key in the input:
npm run start