摘要: 647 回文字串 func countSubstrings(s string) int { // 动规五部曲 // dp[i][j] 表示s[i: j+1] 区间是否是一个回文 // if s[i] == s[j] {if i-j <= 1 || dp[i+1][j-1] == true { dp[ 阅读全文
posted @ 2024-08-31 10:45 周公瑾55 阅读(31) 评论(0) 推荐(0)