摘要: class Solution { public: int f[510][510];//f[i][j]表示将s1前i个字符和s2前j个字符的最长公共子序列长度 int minDistance(string word1, string word2) { int n=word1.size(),m=word 阅读全文
posted @ 2023-04-26 17:13 穿过雾的阴霾 阅读(15) 评论(0) 推荐(0)
摘要: class Solution { public: bool check(char a,char b) { int num=(a-'0')*10+(b-'0'); if(num>=10&&num<=25) return true; return false; } int getTranslationC 阅读全文
posted @ 2023-04-26 16:37 穿过雾的阴霾 阅读(21) 评论(0) 推荐(0)