Facebook & Apple's VALID PALINDROME | LeetCode | [step by step optimized 2 solutions | JAVASCRIPT

Опубликовано: 12 Июнь 2026
на канале: ALGO BYTE
444
10

Problem link / URL : https://leetcode.com/problems/valid-p...
Top Interview Questions Playlist:    • TOP INTERVIEW QUESTIONS - EASY JS  
Printable ASCII characters: http://facweb.cs.depaul.edu/sjost/it2...

VALID PALINDROME is a tech interview question asked by Facebook, Amazon, Apple, Microsoft, Bloomberg, Wayfair, Oracle and other compaines.

Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
Note: For the purpose of this problem, we define empty string as valid palindrome.

Input: "A man, a plan, a canal: Panama"
Output: true
Input: "race a car"
Output: false

Related topics: STRINGS, 2 POINTERS