https://leetcode.com/problems/lru-cache/
LinkedList implementation using timestamps: Time Limit Exceeded
1 | class Node { |
LinkedHashMap
1 | class LRUCache { |
Hashmap + DoubleLinkedList
1 | class LRUCache { |
https://leetcode.com/problems/lru-cache/
LinkedList implementation using timestamps: Time Limit Exceeded
1 | class Node { |
1 | class LRUCache { |
1 | class LRUCache { |