Skip to content

Commit e9e3264

Browse files
authored
Update 115. Distinct Subsequences.cpp
1 parent d46706d commit e9e3264

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

115. Distinct Subsequences.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// 之前理解有误,单从字面理解,可以想为,s中字符删减多少次变成t中的字符
22
//但写代码的时候还是不能够按照这种方法来理解,只是由给的列子来看,还是使用删减法来理解最好不过
33
//还是有问题
4+
// 不能理解为删减多少次,这样 dp[i][0]=1; 无法解释,就是出现次数 解释比较好
45
class Solution {
56
public:
67
int numDistinct(string s, string t) {

0 commit comments

Comments
 (0)