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 l1 = str1.size(),l2 = str2.size(); int rec[l2]; memset(rec,0,sizeof(rec)); vector<int&...