Problem 818 · Hard

Race Car

Fill a DP table of shortest instruction counts by overshooting or backing off at every target distance.

Open the interactive visualisation