leetcode/src/main/java/com/my/MyHashSet.java
/** Returns true if this set contains the specified element */
Returns true if this set contains the specified element
Returns true if this set contains the specified element
public boolean contains(int key) {
        int y = key%1000000;
        if(ints[y]!=null && ints[y] == key){
            return true;
        }else {
            return false;
        }
    }
public boolean contains ( int key ) { int y = key % 1000000 ; if ( ints [ y ] != null && ints [ y ] == key ) { return true ; } else { return false ; } }
Returns true if this set contains the specified element
Returns true if this set contains the specified element