C++ Solution using bitset
\nclass MyHashSet {\npublic:\n    bitset<10000001> bset{0};\n    /** Initialize your data structure here. */\n    MyHashSet() {}\n    void add(int key) {bset[ke
```\nclass MyHashSet {\npublic:\n    bitset<10000001> bset{0};\n    /** Initialize your data structure here. */\n    MyHashSet() {}\n    void add(int key) {bset[key] = 1;}\n    void remove(int key) {bset[key] = 0;}\n    /** Returns true if this set contains the specified element */\n    bool contains(int key) {return bset[key];}\n};\n```
['C']