Skip to content Skip to sidebar Skip to footer

Javascript Palindrome Logic

I have checked this thread: Palindrome check in Javascript But I'm more so looking to fix my own algorithm. I am just programming online right now so I do not have access to a good

Solution 1:

k = str.length-1;

should be

k = strSqueezed.length-1;

Thats it.

https://jsfiddle.net/aejmjsqk/

Post a Comment for "Javascript Palindrome Logic"