1-D Dynamic Programming · Anvil