BackeasyTwo Pointers

Valid Palindrome basics Solution

Problem Statement

Given a string s, return true if it is a palindrome, or false otherwise. Consider only alphanumeric characters and ignore cases.

Example 1
Input
A man, a plan, a canal: Panama
Output
true

Explanation: 'amanaplanacanalpanama' is a palindrome.

Constraints

  • 1 <= s.length <= 2 * 10^5
  • s consists only of printable ASCII characters.
Live Compiler
Sign InSign Up
Loading...
Test Cases & Output
Click "Run" to execute