One of the winners of the Back-to-School Hackathon was Alexander Ramirez. He helpfully posted about each challenge on his blog and linked to his code on Github: Life Hacks.
Click on the link to view his explanations; I’ll just provide a quick summary and link to his Github pages:
- Leibniz challenge – he used Python instead of Perl, the usual Code-Golf choice.
- Bead Ornaments – he figured out a formula to solve the code in only a few lined of Python.
- Stone Game – he just used a brute-force solution, but that only passed two test cases.
- Stock-Prediction – he just sold stocks that had gone up and bought ones that had gone down, making $80k in the process.
- Traveling Salesman – he ended up using a one-at-a-time sales approach.
- Mancala – he used a simple algorithm that focused mainly on getting the most points that turn.
We will post here in more detail about each challenge, but meanwhile you can check out those solutions.