题解 | #回文字符串#
回文字符串
https://www.nowcoder.com/practice/84424799af474ba093b06c29a1f12dfb
const _isPalindrome = string => { // 补全代码 const arr = Array.from(string); const str = arr.reverse().join(''); return string === str }
回文字符串
https://www.nowcoder.com/practice/84424799af474ba093b06c29a1f12dfb
const _isPalindrome = string => { // 补全代码 const arr = Array.from(string); const str = arr.reverse().join(''); return string === str }
相关推荐