题解 | #回文字符串#
回文字符串
https://www.nowcoder.com/practice/84424799af474ba093b06c29a1f12dfb
const _isPalindrome = string => {
let res = string.split('').reverse().join('');
return res === string;
}
回文字符串
https://www.nowcoder.com/practice/84424799af474ba093b06c29a1f12dfb
const _isPalindrome = string => {
let res = string.split('').reverse().join('');
return res === string;
}
相关推荐