This commit is contained in:
ehlxr 2022-06-05 14:55:15 +08:00
parent c6760f0a68
commit a6c6435bc7

View File

@ -29,5 +29,6 @@ func palindrome(s string, l, r int) string {
// (r-1)-l 为回文串的长度
// s[l+1 : (r-1)-l+(l+1)] 为回文串
// 区间:[:)
return s[l+1 : r]
}