题解 | #寻找连续任务开始位置#
寻找连续任务开始位置
https://www.nowcoder.com/practice/c93fd6c526da40788fd832ef9cd7177e
import java.util.*;
public class Solution {
public int findLongestSubstring (String s, String[] words) {
StringBuffer sb=new StringBuffer();
for(String word:words){
sb.append(word);
}
return s.indexOf(sb.toString(),0);
}
}

CVTE公司福利 714人发布