JavaScript:实现最长公共子序列算法 function longestCommonSubsequence (str1, str2) { const memo = new Array(str1.length + 1).