Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f10045

Browse files
refactor 146
1 parent6c07057 commit2f10045

File tree

1 file changed

+2
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+2
-2
lines changed

‎src/main/java/com/fishercoder/solutions/_146.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public int get(int key) {
6161
returncache.getOrDefault(key, -1);
6262
}
6363

64-
publicvoidset(intkey,intvalue) {
64+
publicvoidput(intkey,intvalue) {
6565
cache.put(key,value);
6666
}
6767
}
@@ -127,7 +127,7 @@ public int get(int key) {
127127
}
128128
}
129129

130-
publicvoidset(intkey,intvalue) {
130+
publicvoidput(intkey,intvalue) {
131131
LRUCache.Nodenode =map.get(key);
132132
if (node ==null) {
133133
node =newLRUCache.Node(key,value);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp