题解 | 子字符串频次
子字符串频次
https://www.nowcoder.com/practice/053caf9d4d9d449bb45a6b02a572f71b
本题可以使用split进行分割
const _searchStrIndexOf = (str, target) => {
// 补全代码
return str.split(target).length-1
}
子字符串频次
https://www.nowcoder.com/practice/053caf9d4d9d449bb45a6b02a572f71b
本题可以使用split进行分割
const _searchStrIndexOf = (str, target) => {
// 补全代码
return str.split(target).length-1
}
相关推荐