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

Method __init__

other/lfu_cache.py:100–103  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected