This is a question that comes up a lot in job interviews. The idea is to define a data structure instead of using Java\'s built in LinkedHashMap.
An LRU cache delete
@templatetypedef
public LinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder)
accessOrder - the ordering mode - true for access-order, false for insertion-order