Day 4 of LeetCode
Documenting LeetCode solving.
Q1
125. Valid Palindrome
Easy. Two pointers.
class Solution:
def isPalindrome(self, s: str) -> bool:
# Extra space
newStr = ""
for c in s:
# isalpha() is to check if the character...
evelynsjourney.hashnode.dev2 min read