思路 我是利用双链表+hash table的思路。此代码有于76%的提交方案。 # # lru design # @param operators int整型二维数组 the ops # @param k int整型 the k # @return int整型一维数组 # class DoubleLinkedListNode: def __init__(self, x=None, y=None): self.key = x self.val = y self.pre = None self.next = None class classLRU: def __init__(self,k): se...