Happy Coding

This blog is for my memorandum about programming and English.

Happy Coding

This blog is for my memorandum

design

LRU Cache (Leet Code, Amazon)

problem Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, other…