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 6c07057 commit 2f10045Copy full SHA for 2f10045
src/main/java/com/fishercoder/solutions/_146.java
@@ -61,7 +61,7 @@ public int get(int key) {
61
return cache.getOrDefault(key, -1);
62
}
63
64
- public void set(int key, int value) {
+ public void put(int key, int value) {
65
cache.put(key, value);
66
67
@@ -127,7 +127,7 @@ public int get(int key) {
127
128
129
130
131
LRUCache.Node node = map.get(key);
132
if (node == null) {
133
node = new LRUCache.Node(key, value);
0 commit comments