數據結構KMP實現

數據結構KMP實現 代碼如下: #include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 void cal_next( char * str, int * next, int len ) //next數組作用返回失配位之前的最長公共前後綴!; len爲返回當前的最長公共前後綴長度 { int i,
相關文章
相關標籤/搜索