摘要: 例如,abcdefg,xdefkl,那么最大相同子字符串为defView Code static string LongCommonSubstring(string str1, string str2) { if (string.IsNullOrEmpty(str1) || string.IsNullOrEmpty(str2)) { throw new Exception("input can't be empty."); } string res... 阅读全文
posted @ 2013-01-03 15:16 Ligeance 阅读(501) 评论(0) 推荐(0) 编辑