Design HashSet Solution Java
class MyHashSet {\n  / Initialize your data structure here. */\n  public MyHashSet() {\n    set = new boolean[1000001];\n  }\n\n  public void add(int key) {\n  
class MyHashSet {\n  /** Initialize your data structure here. */\n  public MyHashSet() {\n    set = new boolean[1000001];\n  }\n\n  public void add(int key) {\n    set[key] = true;\n  }\n\n  public void remove(int key) {\n    set[key] = false;\n  }\n\n  /** Returns true if this set contains the specified element */\n  public boolean contains(int key) {\n    return set[key];\n  }\n\n  private boolean[] set = new boolean[1000001];\n}\n
['Array', 'Hash Table', 'Linked List', 'Design', 'Hash Function']