Happy Coding

This blog is for my memorandum.

Happy Coding

This blog is for my memorandum

hash

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…