Solution: Valid Palindrome
Let's solve the Valid Palindrome problem using the Two Pointers pattern.
Statement
Write a function that takes a string, s
, as an input and determines whether or not it is a palindrome.
Note: A palindrome is a word, phrase, or sequence of characters that reads the same backward as forward.
Constraints:
-
s.length
Access this course and 1400+ top-rated courses and projects.