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

Class DoublyLinkedListNode

cpp/Linked Lists/lru_cache.cpp:3–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <unordered_map>
2
3class DoublyLinkedListNode {
4public:
5 int key;
6 int val;
7 DoublyLinkedListNode* prev;
8 DoublyLinkedListNode* next;
9 DoublyLinkedListNode(int key, int val)
10 : key(key), val(val), prev(nullptr), next(nullptr) {}
11};
12
13class LRUCache {
14public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected