| 1 | using ds.DoublyLinkedListNode; |
| 2 | |
| 3 | class DoublyLinkedListNode |
| 4 | { |
| 5 | public DoublyLinkedListNode(int key, int val) |
| 6 | { |
| 7 | Key = key; |
| 8 | Val = val; |
| 9 | Prev = null; |
| 10 | Next = null; |
| 11 | } |
| 12 | |
| 13 | public int Key { get; set; } |
| 14 | |
| 15 | public int Val { get; set; } |
| 16 | |
| 17 | public DoublyLinkedListNode Prev { get; set; } |
| 18 | |
| 19 | public DoublyLinkedListNode Next { get; set; } |
| 20 | } |
| 21 | |
| 22 | public class LRUCache |
| 23 | { |
nothing calls this directly
no outgoing calls
no test coverage detected