题解 | #寻找连续任务开始位置#
寻找连续任务开始位置
https://www.nowcoder.com/practice/c93fd6c526da40788fd832ef9cd7177e
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @param words string字符串一维数组 * @return int整型 */ function findLongestSubstring( s , words ) { // write code here return s.indexOf(words.join('')) } module.exports = { findLongestSubstring : findLongestSubstring };