JavaScript solution for https://code.google.com/codejam/contest/6224486/dashboard
The repo includes a text file to test test-algo.js
which is the main algo.
node test-algo.js text
The mode-hardcore.js was used to test two different algorithms to be sure that they work against randomly generated cases.
mocha mode-hardcore.js