方法:滑动窗口法
代码总结:
HashMap创建方法:
HashMap<Character,Integer> mao=new HashMap<Character,Integer>();
HashMap查找是否含有特定key:
mao.containsKey();
HashMap加入新键值对:(注:当新加入键值对key与原有键值重复时,会覆盖原键值对)
mao.put(key,value);
简单判断两整数大小:
Math.max(int a,int b);
方法:滑动窗口法
代码总结:
HashMap创建方法:
HashMap<Character,Integer> mao=new HashMap<Character,Integer>();
HashMap查找是否含有特定key:
mao.containsKey();
HashMap加入新键值对:(注:当新加入键值对key与原有键值重复时,会覆盖原键值对)
mao.put(key,value);
简单判断两整数大小:
Math.max(int a,int b);