1.动态规划,啥也不是 class Solution { public: /** * longest common substring * @param str1 string字符串 the string * @param str2 string字符串 the string * @return string字符串 */ string LCS(string str1, string str2) { // write code here int m = str1.size(),n=str2.size(),mark_i=0,max_len=0; vector<vector<int>...