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

Class DoublyLinkedListNode

java/Linked Lists/LRUCache.java:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import java.util.HashMap;
2
3class DoublyLinkedListNode {
4 public int key;
5 public int val;
6 public DoublyLinkedListNode next;
7 public DoublyLinkedListNode prev;
8 public DoublyLinkedListNode(int key, int val) {
9 this.key = key;
10 this.val = val;
11 }
12}
13
14
15public class LRUCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected