This repository houses my personal solutions to HBH's programming challenges.
It is strongly encouraged that you do not view my solutions unless you've already solved the relevant problems yourself.
Each challenge consists of some (typically non-static) dataset that must be
processed according to the problem statement and submitted back to the specified
URI via a GET
or POST
request. Assuming a correct and timely submission,
points for the specified challenge are automatically credited to your account.
Most challenges have a dataset/solution TTL of a few seconds, so performance isn't that important.
Authentication is cookie-based. The current workflow of getting and storing session cookies is as follows:
- Manually log in to the site,
- Open devtools and grab the
PHPSESSID
andfusion_user
cookies, - Save the cookie pair in
/session.json
.
Note that the fusion_user
cookie appears to be static, so it looks like only
the PHPSESSID
cookie will need to be updated from time to time.
Given the relatively low number of published programming challenges at the time of this writing, automation of the above steps does not seem warranted.
- Linux
- Node.js >= v10.15.3
The /session.json
file changes relatively often. In order to not pollute the
commit log, set the assume-unchanged
bit on it after cloning:
$ git update-index --assume-unchanged session.json
All original code is released under the MIT license, unless otherwise specified.
All referenced product names, trademarks, logos, and images are property of their respective owners.