We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303dad8 commit 045104cCopy full SHA for 045104c
include/LFUCache.h
@@ -19,6 +19,8 @@ class LFUCache {
19
private:
20
void touch(int key);
21
void evict();
22
+ // Add this line in both LRUCache.h and LFUCache.h
23
+ void reset();
24
25
size_t capacity;
26
std::unordered_map<int, std::pair<int, int>> cache; // key -> {value, frequency}
0 commit comments