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

Method __init__

other/number_container_system.py:13–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class NumberContainer:
13 def __init__(self) -> None:
14 # numbermap keys are the number and its values are lists of indexes sorted
15 # in ascending order
16 self.numbermap: dict[int, list[int]] = {}
17 # indexmap keys are an index and it's values are the number at that index
18 self.indexmap: dict[int, int] = {}
19
20 def binary_search_delete(self, array: list | str | range, item: int) -> list[int]:
21 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected