Last updated 1 year ago
function isPalindrome(string) { let s = 0 let e = string.length - 1; while (s <= e) { if (string[s] !== string[e]) return false; s++; e--; } return true; } // Do not edit the line below. exports.isPalindrome = isPalindrome;