1332. Remove Palindromic Subsequences

Обновлено: 2024-03-12
1 мин
[]

Содержание

LeetCode problem 1332

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