Solutions to topcoder problems (and other algorithmic nonsense)