<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Digit-Dp on Yu-Cheng's Notes</title><link>https://linkingmon.github.io/blog/tags/digit-dp/</link><description>Recent content in Digit-Dp on Yu-Cheng's Notes</description><generator>Hugo -- 0.166.0</generator><language>en-us</language><lastBuildDate>Tue, 06 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://linkingmon.github.io/blog/tags/digit-dp/index.xml" rel="self" type="application/rss+xml"/><item><title>LC - Digit DP problems</title><link>https://linkingmon.github.io/blog/coding/lc-digit-dp/</link><pubDate>Tue, 06 Jan 2026 00:00:00 +0000</pubDate><guid>https://linkingmon.github.io/blog/coding/lc-digit-dp/</guid><description>&lt;h2 id="approach"&gt;Approach&lt;/h2&gt;
&lt;p&gt;Usually whne a digit-DP problems occurs it is classify as hard. I&amp;rsquo;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.&lt;/p&gt;
&lt;p&gt;The approach for digit DP is baesd on DP, but with a &lt;code&gt;tight&lt;/code&gt; constraint. For instance when traverse to a problem &lt;code&gt;12xx&lt;/code&gt; from &lt;code&gt;1234&lt;/code&gt;, and traverse from &lt;code&gt;11xx&lt;/code&gt; from &lt;code&gt;1234&lt;/code&gt;, the subproblem may be different. And the only difference is the &lt;code&gt;tight&lt;/code&gt; part, that is when that digit is approaching the upper limit.&lt;/p&gt;</description></item></channel></rss>