struct Node { int key; int value; }; class LRUCache { public: ... check the capacity const Node& lastNode = cache.back(); keyToIterator.erase(lastNode.key); ...
確定! 回上一頁