MCPcopy Create free account
hub / github.com/ByteByteGoHq/coding-interview-patterns / DoublyLinkedListNode

Class DoublyLinkedListNode

csharp/Linked Lists/LRUCache.cs:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1using ds.DoublyLinkedListNode;
2
3class 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
22public class LRUCache
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected