Day 16 LeetCode
👨‍💻

Day 16 LeetCode

Tags
Data Structures
Python
Java
Computer Science
Published
Jan 24, 2021

Day 16 Task:

Solutions:

class Solution:
    def isPalindrome(self, s: str) -> bool:
        ans = ""
        for i in range(len(s)):
            if(s[i].lower().isalnum()):
                ans += s[i].lower()
        return ans == ans[::-1]