Skip to content

Commit 7a591d2

Browse files
refactor 146
1 parent fc0ee4c commit 7a591d2

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class Solution1 {
3737
public class LRUCache {
3838
/**
3939
* The shortest implementation is to use LinkedHashMap:
40-
* specify a size of the linkedHashMap;
40+
* specify a size of the LinkedHashMap;
4141
* override the removeEldestEntry method when its size exceeds max size:
4242
* https://docs.oracle.com/javase/8/docs/api/java/util/LinkedHashMap.html#removeEldestEntry-java.util.Map.Entry-
4343
* in the constructor, set the last boolean variable to be true: it means the ordering mode,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy