EasyString· 72% acceptance
#460

Valid Palindrome 10

Easy

After removing non-alphanumeric characters and ignoring case, determine if `s` reads the same forward and backward. Variant **#10**.

Example 1

Input: s = "A man a plan a canal Panama10"

Output: false

Constraints

  • 1 <= s.length <= 2 * 10^5

Acceptance: 72% · Topics: string, two-pointers

isPalindrome

← All practice problems