« Software Campfire Stories: The Beauty And The Bug | Main | JDK Source Browsing: Interesting Way To Format An Array To String »

04/27/2012

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Ganesh Kumar

It is a nice and simple way to implement LRUCache. But I did not understand why we need to pass capacity+1 to the super constructor.

dave

I have implemented LRU here http://www.gohired.in/2014/08/implement-lru-cache.html

http://www.codewalk.com/2012/04/least-recently-used-lru-cache-implementation-java.html?cid=6a00e5501e33db8834017d3ce1ec07970c#comment-6a00e5501e33db8834017d3ce1ec07970c

Wonderful explanation!!!

karthik

I was asked to write similar program (like above)in an interview.This is what i was looking for.Thanks.

The comments to this entry are closed.