代码随想录算法训练营四十五天|115.不同的子序列、583.两个字符串的删除操作、72.编辑距离
题目链接:115. 不同的子序列 - 力扣(LeetCode) class Solution(object):def numDistinct(self, s, t):""":type s: str:type t: str:rtype: int"""dp [[0] * (len(t) 1) for _ in range(len(s) 1)]for i i…
2025-09-14