LC - Digit DP problems
Approach Usually whne a digit-DP problems occurs it is classify as hard. I’ve read someones answer before, but did not quite understand the strategy. In order to be familiar with digit DP, I try to figure out the systematic method for this, and try to write all of the related problems, including LC-233, 902, 2719, 2827, and I find that actually this type of problem is not that hard. The approach for digit DP is baesd on DP, but with a tight constraint. For instance when traverse to a problem 12xx from 1234, and traverse from 11xx from 1234, the subproblem may be different. And the only difference is the tight part, that is when that digit is approaching the upper limit. ...