leetcode刷题笔记-design

146. LRU Cache  解法一:OrderedDict , 太好用了,但是太取巧了 class LRUCache(object): def __init__(self, capacity): """ :type capacity: int """ self.dic = collections.OrderedDict(
相关文章
相关标签/搜索