### Question:
ContainsDuplicate { public boolean containsDuplicate(int[] nums) { boolean result = false; HashMap<Integer, Integer> tmp = new HashMap<>(); for (int num : nums) { if (tmp.containsKey(num)) { result = true; break; } else { tmp.put(num, 0); } } return result; }  boolean containsDuplicate(int[] nums); boolean containsDuplicate2(int[] nums); boolean containsDuplicate3(int[] nums);  }### Answer:
@Test void go() { ContainsDuplicate containsDuplicate = new ContainsDuplicate(); for (int i = 0; i < cases.size(); i++) { assertEquals(results.get(i),containsDuplicate.containsDuplicate(cases.get(i))); } }