deepsleep
deepsleep
全部文章
题解
归档
标签
去牛客网
登录
/
注册
deepsleep的博客
全部文章
/ 题解
(共1篇)
题解 | #最长公共子串#
java版 思路: 以String[][] res 来保存先前状态,res[i][j] 代表str1到i、str2到j的公共串, 注意如果str1.charAt(i) != str2.charAt(j) , 则res[i][j] = ""; 递推公式为: 如果 str1.charAt(i) == s...
LCS
2021-04-10
1
514