使用C语言实现最长回文子串的查找
-
使用C语言实现最长回文子串的查找
下面是一个使用C语言实现查找最长回文子串的例子:#include #include int expandAroundCenter(char *s, int left, int right) {int len = strlen(s);while (left >= 0 && right < len && s[left] == s[right]) {left–
下面是一个使用C语言实现查找最长回文子串的例子:#include #include int expandAroundCenter(char *s, int left, int right) {int len = strlen(s);while (left >= 0 && right < len && s[left] == s[right]) {left–