Solutions to problems from TopCoder