思路:c++ 中心扩散,一前一后寻找相同的字符串,当找到后从两边进行扩展。 代码: #include <iostream> #include <string> using namespace std; const int MAX_LETTER = 26; int main() { int res = Read More
posted @ 2022-03-01 19:46 A-inspire Views(53) Comments(0) Diggs(0) Edit
1、题目描述 代码: #include <iostream> #include <string> using namespace std; const int MAX_LETTER = 26; int main() { string source; string target; cin>>sourc Read More
posted @ 2022-03-01 19:25 A-inspire Views(126) Comments(0) Diggs(0) Edit