392. 判断子序列
摘要:class Solution { public: bool isSubsequence(string s, string t) { // 公共子序列是不是s 长度相同 // dp[i][j] 表示以下标i-1为结尾的字符串s,和以下标j-1为结尾的字符串t,相同子序列的长度为dp[i][j]。 //
阅读全文
posted @ 2025-02-17 19:50
posted @ 2025-02-17 19:50