题解 | 子字符串频次
子字符串频次
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
}
相关推荐
明天不下雨了:那我建议可以用 chatgpt atlas 或者 dia 去刷,也可以用 chrome 加个 ai 插件去刷