Revert "Dynamic programming fixed"

This reverts commit 5e649496ee755dc1b0ab86d7e4e64cc3b253876a.