How is the LRU deleted in this LRUCache implementation?
How is the LRU deleted in this LRUCache implementation? Question: I’m going over the optimal Leetcode solution for LRU Cache LeetCode Medium question. The original problem can be found here: https://leetcode.com/problems/lru-cache/description/ I’m confused by a specific portion of the solution code. class Node: def __init__(self, key, val): self.key, self.val = key, val self.prev = self.next …
Total answers: 1