Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions articles/lfu-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,6 @@ class LinkedList:
self.pop(self.left.next.val)
return res

def update(self, val):
self.pop(val)
self.pushRight(val)

class LFUCache:

def __init__(self, capacity: int):
Expand Down Expand Up @@ -720,11 +716,6 @@ class DoublyLinkedList {
pop(res);
return res;
}

public void update(int val) {
pop(val);
pushRight(val);
}
}

public class LFUCache {
Expand Down Expand Up @@ -844,11 +835,6 @@ class LFUCache {
pop(res);
return res;
}

void update(int val) {
pop(val);
pushRight(val);
}
};

int capacity;
Expand Down Expand Up @@ -976,14 +962,6 @@ class LinkedList {
this.pop(res);
return res;
}

/**
* @param {number} val
*/
update(val) {
this.pop(val);
this.pushRight(val);
}
}

class LFUCache {
Expand Down