所用语言 Java 所用知识 字符串、哈希表 解题思路 因为t中可能有多个编号,所以使用hashmap存储,使用containKey进行匹配; 使用滑动窗口,记录当前窗口中符合标准的数量; 再用Math.max记录最大值返回即可 完整代码 public int maxCount (String s, int k, String t) { // write code here HashMap<Character, Integer> hashMap = new HashMap<>(); for (int i = 0; i < t.length(...