Easy Problems125. Valid Palindrome125. Valid PalindromeLeetcodehttps://leetcode.com/problems/valid-palindrome/ Solutions Compare With ReverseTwo PointersTwo Pointers V2Two Pointers V3function isPalindrome(s: string): boolean { const result = s.replace(/[^a-zA-Z0-9]/g, '').toLowerCase().split(''); // s.replace(/[^0-9a-z]/gi, '') return result.join('') === result.reverse().join('') }; Video Solution Last Update: 12:08 - 16 April 2024Two PointersStringPrevious121. Best Time to Buy and Sell StockNext217. Contains DuplicateOn this page