Pick stroke optimizing algorithm

I have been studying dynamic programming in my algorithms class and thought dynamic programming might be a good fit for optimizing pick strokes. I tried to make the difficulty function as lax as possible so that you can try out a bunch of different combinations. Curious to hear feedback or if you can get it to output anything funny. Also curious to hear if anybody has any better ideas for an input format.

https://pickoptimizer.netlify.app/