Solutions to common dynamic programming problems.