05 2021 档案

摘要:题目链接 public static List<String> topKFrequent(String[] words, int k) { HashMap<String,Integer> hashMap=new HashMap<>(); for(String a:words) { hashMap.p 阅读全文
posted @ 2021-05-22 15:28 莫恼卿卿 阅读(56) 评论(0) 推荐(0)
摘要:HashMap的遍历: 1.使用map.keyset()与map.values()遍历键值 HashMap<String,Integer> hashMap=new HashMap<>(); hashMap.put("hello",1); hashMap.put("hi",2); for(String 阅读全文
posted @ 2021-05-21 22:32 莫恼卿卿 阅读(81) 评论(0) 推荐(0)