标签:class 技术 new com http lse break integer png
class Solution {
public boolean containsDuplicate(int[] nums) {
boolean flag = false;
HashSet<Integer> set = new HashSet<>();
for(int i:nums){
boolean p = set.add(i);
if(!p){
flag = true;
break;
}
}
return flag;
}
}
标签:class 技术 new com http lse break integer png
原文地址:https://www.cnblogs.com/daweiguo/p/14497306.html