摘要:
The idea is to add a set to the hashMap to remember all the locations of a duplicated number. 阅读全文
摘要:
最先想到是用double LinkedList+Map, 没必要,arraylist+map就够了;另外取random的方法还有,rand.nextInt(int n) returns an integer in the range [0, n) java.util.Random rand = ne 阅读全文