![](https://i-blog.csdnimg.cn/blog_migrate/e585ef291e4573b700c876bcd04a3d97.png)
代码:
public int minNumberDisappeared (int[] nums) {
int n=nums.length;
HashSet<Integer>set=new HashSet();
for(int num:nums){
set.add(num);
}
int res=1;
while(set.contains(res)){
res++;
}
return res;
}