题解 | #搜索数字#
https://www.nowcoder.com/practice/f7df2b13dce44b7498a13c1df1652779
const isDigit = (c) => '0123456789'.indexOf(c) != -1; function _search(s) { for (const c of s) { if (isDigit(c)) return true; } return false; }
https://www.nowcoder.com/practice/f7df2b13dce44b7498a13c1df1652779
const isDigit = (c) => '0123456789'.indexOf(c) != -1; function _search(s) { for (const c of s) { if (isDigit(c)) return true; } return false; }
相关推荐