给出两个字符串,求最长的相同子串的C语言实现

下面是求最长公共子串的C语言代码实现:

#include 
#include 

int max(int a, int b) {
    return (a > b) ? a : b;
}

int longestCommonSubstring(char *s1, char *s2) {
    int m = 

你可能感兴趣的:(c语言,c++,算法,开发语言)