Github 同步地址: https://github.com/grandyang/leetcode/issues/1143 类似题目: Longest Palindromic Subsequence Delete Operation for Two Strings Shortest Common Supersequence 参考资料: https://leetcode.com/problems/longest-common-subsequence/ https://leetcode.com/problems/longest-common-subsequence/discuss/...
package LeetCode_1143 /** * 1143. Longest Common Subsequence * https://leetcode.com/problems/longest-common-subsequence/description/ * * Given two strings text1 and text2, return the length of their longest common subsequence. A subsequence of a string is a new string generated from the ...