摘要: 一、测试输入: LOOP HELLOWORLD 二、经转移公式推导: 三、测试程序: 1 /* 2 * 最长公共子序列长度 3 * 4 */ 5 6 #include <stdio.h> 7 #include <stdlib.h> 8 #include <string.h> 9 10 #define 阅读全文
posted @ 2020-08-01 23:18 Zackary丶Liu 阅读(110) 评论(0) 推荐(0)
摘要: 一、测试程序: 1 /* 2 * 最长上升子串长度 3 * 4 */ 5 6 #include <stdio.h> 7 #include <string.h> 8 9 #define MAX(a, b) (a)>(b) ? (a):(b) 10 11 int main() 12 { 13 unsig 阅读全文
posted @ 2020-08-01 22:43 Zackary丶Liu 阅读(120) 评论(0) 推荐(0)
摘要: 一、测试程序: 1 /* 2 * 最长上升子系列长度 3 * 4 */ 5 6 #include <stdio.h> 7 #include <string.h> 8 9 int main() 10 { 11 int out[1024] = {0}; 12 int d[1024] = {0}; 13 阅读全文
posted @ 2020-08-01 22:33 Zackary丶Liu 阅读(113) 评论(0) 推荐(0)