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 045104c commit 4b0f131Copy full SHA for 4b0f131
include/LRUCache.h
@@ -15,6 +15,8 @@ class LRUCache {
15
// --- New Methods for Stats ---
16
double getHitRate() const;
17
void resetStats();
18
+ // Add this line in both LRUCache.h and LFUCache.h
19
+ void reset();
20
21
private:
22
void moveToFront(int key);
0 commit comments