// 判断字符串是否为回文 function isPalindrome(text) { const cleaned = text.toLowerCase().replace(/\s+/g, ""); return cleaned === cleaned.split("").reverse().join(""); } function isPalindromeTwoPointers
// 判断字符串是否为回文 function isPalindrome(text) { const cleaned = text.toLowerCase().replace(/\s+/g, ""); return cleaned === cleaned.split("").reverse().join(""); } function isPalindromeTwoPointers