kucheasysa

Algoverse_adesh_11

Jun 6th, 2024
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. class Solution:
  2. def removePalindromeSub(self, s: str) -> int:
  3. if s==s[::-1]:
  4. return 1
  5. else:
  6. return 2
Advertisement
Add Comment
Please, Sign In to add comment