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 bf796be commit 8307b4aCopy full SHA for 8307b4a
src/main/java/com/fishercoder/solutions/_460.java
@@ -3,10 +3,11 @@
3
import java.util.HashMap;
4
import java.util.LinkedHashSet;
5
6
-/**460. LFU Cache
+/**
7
+ 460. LFU Cache
8
- * Design and implement a data structure for Least Frequently Used (LFU) cache.
9
- * It should support the following operations: get and put.
+ Design and implement a data structure for Least Frequently Used (LFU) cache.
10
+ It should support the following operations: get and put.
11
12
get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1.
13
put(key, value) - Set or insert the value if the key is not already present. When the cache reaches its capacity,
0 commit comments