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

Method display

other/least_recently_used.py:66–71  ·  view source on GitHub ↗

Prints all the elements in the store.

(self)

Source from the content-addressed store, hash-verified

64 self.key_reference.add(x)
65
66 def display(self) -> None:
67 """
68 Prints all the elements in the store.
69 """
70 for k in self.dq_store:
71 print(k)
72
73 def __repr__(self) -> str:
74 return f"LRUCache({self._MAX_CAPACITY}) => {list(self.dq_store)}"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected