使用C语言实现KMP算法 1#include <stdio.h>2#include <string.h>34voidcomputeLPSArray(char* pattern,int*lps) {5intlen =0;//最长前缀后缀匹配长度6inti =1;78lps[0] =0;910while(pattern[i] !='\0') {11if(pattern[i] ==pattern[len]) {12len++;13lps[i] =len;14i++;15}else{16if(le...