摘要: 假设给定了数组nums为[0,1,2,3,4,5,6,7,8,9,10,10,9,8,7,6,5,4,1,2,3,3,0] 其中3出现了3次 而其他数字都出现了两次 则我们应该得到结果为3 第一种方式:使用Hash 1 /** 2 * 使用hash 3 * */ 4 public static in 阅读全文
posted @ 2019-09-05 14:08 亲爱的坨 阅读(1158) 评论(0) 推荐(0) 编辑