How I solved LeetCode 125. Valid Palindrome in JavaScript

preview_player
Показать описание
Hey! My name is Tomas. Thanks for checking out my channel.

Notes:
• consider numbers, spaces, different cased letters, weird characters
• we know it's a palindrome if a string has the same letters all the way down to the middle
• consider a pointer system
• create a pointer that keeps track of the start of the string
• create a pointer that keeps track with the end of the string
• consider a while loop to go through the entire string/array

Happy Coding!
Рекомендации по теме
welcome to shbcf.ru