aboutsummaryrefslogtreecommitdiff
path: root/design_hashmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'design_hashmap.cpp')
-rw-r--r--design_hashmap.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/design_hashmap.cpp b/design_hashmap.cpp
deleted file mode 100644
index 6b7ce3d..0000000
--- a/design_hashmap.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-#include "leetcode.h"
-
-class MyHashMap {
-public:
- int data[1000001];
- MyHashMap() { fill(data, data + 1000000, -1); }
- void put(int key, int value) { data[key] = value; }
- int get(int key) { return data[key]; }
- void remove(int key) { data[key] = -1; }
-};
-
-int main() {}