Solution to the poker hands problem. Made it into the top 1% :).