30. Substring with Concatenation of All Words
题意为给定字符串s,以及字符串数组words, 求s中包含words的连接子串(顺序无关)的所有索引。
正解:public class Solution {
public List<Integer> findSubstring(String s, String[] words) {
if(words==null||words.length==0){
r
原创
2017-07-18 07:45:26 ·
203 阅读 ·
0 评论