题目地址:http://ac.jobdu.com/problem.php?pid=1042 题目描述: Find a longest common subsequence of two strings. 输入: First and second line of each input case contain two strings of lowercase character a…z. There are no spaces before, inside or after the strings…
问题来源 http://ac.jobdu.com/problem.php?pid=1042 问题描述 给定两个字符串,求其最长公共子序列(LCS). 问题分析 网上是在是太多这类问题的文章了,随便贴一个吧. http://blog.csdn.net/yysdsyl/article/details/4226630/ 参考代码 // // Created by AlvinZH on 2017/6/22. // Copyright (c) AlvinZH. All rights reserved. /…