java 實現LRU(最近最少使用)緩存機制

  /** * Your LRUCache object will be instantiated and called as such: * LRUCache obj = new LRUCache(capacity); * int param_1 = obj.get(key); * obj.put(key,value); */ class LRUCache { Map<Int
相關文章
相關標籤/搜索