aboutsummaryrefslogtreecommitdiff
path: root/design_hashset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'design_hashset.cpp')
-rw-r--r--design_hashset.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/design_hashset.cpp b/design_hashset.cpp
deleted file mode 100644
index 52d1097..0000000
--- a/design_hashset.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "leetcode.h"
-
-class MyHashSet {
-public:
- vector<bool> ans;
- MyHashSet() { ans.resize(1e6 + 1, false); }
- void add(int key) { ans[key] = true; }
- void remove(int key) { ans[key] = false; }
- bool contains(int key) { return ans[key]; }
-};
-
-int main() {}