grandyang / leetcode

Provide all my solutions and explanations in Chinese for all the Leetcode coding problems.
6.15k stars 737 forks source link

请问 dp[0] = 1 要怎么理解? 虽然从结果来倒推回去, 需要dp[0] 为1, 但是含义还是无法想清楚 #2013

Open szh-maker opened 3 years ago

szh-maker commented 3 years ago

请问 dp[0] = 1 要怎么理解? 虽然从结果来倒推回去, 需要dp[0] 为1, 但是含义还是无法想清楚

Originally posted by @ericuni in https://github.com/grandyang/leetcode/issues/377#issuecomment-537517833