Problem 818 · Hard
Fill a DP table of shortest instruction counts by overshooting or backing off at every target distance.
Open the interactive visualisation