LeetCode: Valid Palindrome
Problem:
https://leetcode.com/problems/valid-palindrome/description/
Code:
class Solution:
def isPalindrome(self, s: str) -> bool:
left, right = 0, len(s)-1
while left<right:
while left<right and not s[left].isalnum():...
is-power-of-two.hashnode.dev2 min read