1332. Remove Palindromic Subsequences

Updated: 2024-03-12
1 min read
[]

On This Page

LeetCode problem 1332

class Solution:
    def removePalindromeSub(self, s: str) -> int:
        return 1 if s[::-1] == s else 2