Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
compsciphd
· 6y ago · 0 comments
this is a core data structure built into java.
https://docs.oracle.com/javase/8/docs/api/java/util/LinkedHa...
Comments
[–]
pxx
6y ago
You're thinking of the data structure commonly used for an LRU cache, not an LFU cache.
[–]
compsciphd
OP
6y ago
you're 100% right. stupid mistake on my part. Though the implementations are very similar, just can't easily reuse the java implementation I linked to for this.