字符串中最長迴文字符串

給定一個字符串,求該字符串中最長的迴文字符串(假設最長迴文字符串僅有一個)web char* longestPalindrome(char* s) {svg int len = strlen(s); int max_left = 0; int max_len = 1; int left, right; int start = 0; while(start < len && len-start >
相關文章
相關標籤/搜索