Error:
do not know how to do: for each pair s[i] and s[j], if there are different, check if check(s, i + 1, j) or check(s, i, j - 1) is correct or not. It means we perform check twice.
leetcode-680-Valid Palindrome II
最新推荐文章于 2025-04-20 07:15:00 发布