LRU implementation without storing key in map as well as list(Avoid duplication)

Hello ,

Need help! Is it possible to implement LRU Cache(https://leetcode.com/problems/lru-cache/) problem without storing key 2 times(in hash as well as List).

So we avoid duplicate store.

If yes, please let me know how can we achieve it.

Comments (0)