摘要: 一道较简单的题目,但借此机会要好好熟悉一下Hashset和Hashmap的基本操作。 class Solution { public boolean containsDuplicate(int[] nums) { HashSet<Integer> set=new HashSet<>(); for(i 阅读全文
posted @ 2020-06-22 18:32 将来的事 阅读(187) 评论(0) 推荐(0)