Dynamic programming problems from TopCoder. Problem statements are property of TopCoder