command
Version:
v0.0.0-...-60194e6
Opens a new window with list of versions in this module.
Published: Dec 9, 2020
License: Unlicense
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
0146_lru-cache
Least Recently Used (LRU) cache.
要求使用O(1)的时间完成存取操作.
单纯的存取用map完成. 此处我们需要维护一个双向链表.
map存着链表的node, 双向链表使得链表摘取单个node到尾部操作变为O(1).
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.