✅ Easy C++ Solution
Code\n\nclass MyHashSet {\n    vector<bool> mp;\npublic:\n    MyHashSet() {\n        mp.resize(1000001, false);\n    }\n    \n    void add(int key) {\n        m
# Code\n```\nclass MyHashSet {\n    vector<bool> mp;\npublic:\n    MyHashSet() {\n        mp.resize(1000001, false);\n    }\n    \n    void add(int key) {\n        mp[key] = true;\n    }\n    \n    void remove(int key) {\n        mp[key] = false;\n    }\n    \n    bool contains(int key) {\n        return mp[key];\n    }\n};\n\n/**\n * Your MyHashSet object will be instantiated and called as such:\n * MyHashSet* obj = new MyHashSet();\n * obj->add(key);\n * obj->remove(key);\n * bool param_3 = obj->contains(key);\n */\n```
['C++']