MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

other/lru_cache.py:98–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

96 """
97
98 def __init__(self) -> None:
99 self.head: DoubleLinkedListNode[T, U] = DoubleLinkedListNode(None, None)
100 self.rear: DoubleLinkedListNode[T, U] = DoubleLinkedListNode(None, None)
101 self.head.next, self.rear.prev = self.rear, self.head
102
103 def __repr__(self) -> str:
104 rep = ["DoubleLinkedList"]

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected