05 2021 档案
摘要:题目链接 public static List<String> topKFrequent(String[] words, int k) { HashMap<String,Integer> hashMap=new HashMap<>(); for(String a:words) { hashMap.p
阅读全文
摘要:HashMap的遍历: 1.使用map.keyset()与map.values()遍历键值 HashMap<String,Integer> hashMap=new HashMap<>(); hashMap.put("hello",1); hashMap.put("hi",2); for(String
阅读全文

浙公网安备 33010602011771号