/** * 代碼中的類名、方法名、參數(shù)名已經(jīng)指定,請(qǐng)勿修改,直接返回方法規(guī)定的值即可 * * longest common substring * @param str1 string字符串 the string * @param str2 string字符串 the string * @return string字符串 */ function LCS( str1 , str2 ) { // write code here //含義 str1[0到i]和str2[0到j(luò)]匹配,它們的最長(zhǎng)公共子串長(zhǎng)度為dp[i][j] //遞推公式 if(str1[i]=...