Moved to
LRU
Report broken link here: ‣
Space O(n) - we are using a hashmap to hold the key-value pairs
Time O(1) - all the operations are O(1)
1st attempt (python)
2nd attempt (java)
3rd attempt (java) ❤️