Solutions to TopCoder problems