摘要: 最长公共子序列 1 #include <iostream> 2 #include <string> 3 using namespace std; 4 5 // longest common substring(Continuous) 6 int fun(char * src, char * des) 7 { 8 int maxlen = 0; 9 int dp[105][105];10 int i,j;11 int srclen = strlen(src);12 int deslen = strlen(des);13 for(i = 0; i ... 阅读全文
posted @ 2012-10-22 10:15 可乐爱上了雪碧 阅读(130) 评论(0) 推荐(0) 编辑