Alwaldend
Docs
Light
Dark
Auto
Docs
Misc
Leetcode submissions
2025-08-02 18:49:48 +0300 MSK
2025-08-02 18:49:48 +0300 MSK
Remove Palindromic Subsequences
Tags:
Generated
Leetcode_submission
Links
https://leetcode.com/submissions/detail/1720881160/
Code
class
Solution
:
def
removePalindromeSub
(self, s: str)
->
int:
if
s
==
s[::
-
1
]:
return
1
return
2