MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

other/lfu_cache.py:19–24  ·  view source on GitHub ↗
(self, key: T | None, val: U | None)

Source from the content-addressed store, hash-verified

17 """
18
19 def __init__(self, key: T | None, val: U | None):
20 self.key = key
21 self.val = val
22 self.freq: int = 0
23 self.next: DoubleLinkedListNode[T, U] | None = None
24 self.prev: DoubleLinkedListNode[T, U] | None = None
25
26 def __repr__(self) -> str:
27 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected