filmov
tv
LeetCode in Java - LRU Cache

Показать описание
#LRU #HashMap #Queue
Demonstrate two solutions
- Using the HashMap to store the key-value pair and Deque to deal with the elements in a convenient way
- Using the HashMap to store the key-value pair and Double LinkedList with Head and Tail pointers to deal with the elements
to solve this LeetCode LRU Cache problem in Java.
Please subscribe, like and comment to let us learn from each other.
Demonstrate two solutions
- Using the HashMap to store the key-value pair and Deque to deal with the elements in a convenient way
- Using the HashMap to store the key-value pair and Double LinkedList with Head and Tail pointers to deal with the elements
to solve this LeetCode LRU Cache problem in Java.
Please subscribe, like and comment to let us learn from each other.