blob: 6b7ce3d1450dc5de15283dfb7aa93e36e9efa904 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#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() {}
|