leetcode30--滑动窗口系列
class Solution {
//我们使用滑动窗口来解决这个字符串匹配问题
public static List<Integer> findSubstring(String s, String[] words) {
//使用res来接收最后结果
ArrayList<Integer> res = new ArrayList<>();
//1. 统计words数组中每个单词出现的次数,使用map来进行存储
原创
2021-08-10 01:17:34 ·
127 阅读 ·
0 评论