Пример #1
0
 public LRUCache(int capacity)
 {
     this.capacity    = capacity;
     this.count       = 0;
     map              = new Dictionary <int, LRUNode>();
     doubleLinkedList = new LRUDoubleLinkedList();
 }
            public LRUCache(int capacity)
            {
                this.capacity = capacity;

                list = new LRUDoubleLinkedList();
                map  = new Dictionary <int, Node>();
            }