摘要: 前言:刷leetcode的时候体验到hashset有多厉害了,用了他剪枝之后直接不爆超时了。速度大大滴快 使用方法 1.创建set对象Set<Integer>set=new HashSet<>(); 2.set.add(e) /set.remove(e); 3.set.contains(e) //这 阅读全文
posted @ 2024-03-12 21:17 天启A 阅读(27) 评论(0) 推荐(0)