We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9882e4 commit 7e81551Copy full SHA for 7e81551
other/least_recently_used.py
@@ -1,5 +1,4 @@
1
import sys
2
-from abc import abstractmethod
3
from collections import deque
4
5
@@ -10,7 +9,6 @@ class LRUCache:
10
9
key_reference_map = object() # References of the keys in cache
11
_MAX_CAPACITY: int = 10 # Maximum capacity of cache
12
13
- @abstractmethod
14
def __init__(self, n: int):
15
"""Creates an empty store and map for the keys.
16
The LRUCache is set the size n.
0 commit comments