Go Solution
Define a list of boolen in MyHashSet Struct\nFor Add set corresponding index to true\nFor delete set corresponding index to false\nFor contains return correspon
Define a list of boolen in MyHashSet Struct\nFor Add set corresponding index to true\nFor delete set corresponding index to false\nFor contains return corresponding index value(by default all the value in boolean list will be set to false)\n```\ntype MyHashSet struct {\n    List []bool\n}\n\n\nfunc Constructor() MyHashSet {\n    return MyHashSet{make([]bool, 1000001)}\n}\n\n\nfunc (this *MyHashSet) Add(key int)  {\n    this.List[key] = true\n}\n\n\nfunc (this *MyHashSet) Remove(key int)  {\n    this.List[key] = false\n}\n\n\nfunc (this *MyHashSet) Contains(key int) bool {\n    return this.List[key]\n}\n\n\n/**\n * Your MyHashSet object will be instantiated and called as such:\n * obj := Constructor();\n * obj.Add(key);\n * obj.Remove(key);\n * param_3 := obj.Contains(key);\n */\n```
['Go']