<awangdev>217. Contains Duplicate_1.java
public boolean containsDuplicate(int[] nums) {
        if (nums == null || nums.length == 0) {
            return false;
        }
        HashSet<Integer> set = new HashSet<>();
        for (int num : nums) {
            if (set.contains(num)) {
                return true;
            }
            set.add(num);
        }
        return false;
    }
public boolean var_0 ( int [ ] var_1 ) {
  if ( var_1 == null || var_1 . length == 0 ) {
    return false ;
  }
  HashSet < Integer > var_7 = new HashSet < > ( ) ;
  for ( int var_8 : var_1 ) {
    if ( var_7 . contains ( var_8 ) ) {
      return true ;
    }
    var_7 . add ( var_8 ) ;
  }
  return false ;
}
