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

Method __init__

other/word_search.py:28–34  ·  view source on GitHub ↗
(self, words: list[str], width: int, height: int)

Source from the content-addressed store, hash-verified

26 """
27
28 def __init__(self, words: list[str], width: int, height: int) -> None:
29 self.words = words
30 self.width = width
31 self.height = height
32
33 # Board matrix holding each letter
34 self.board: list[list[str | None]] = [[None] * width for _ in range(height)]
35
36 def insert_north(self, word: str, rows: list[int], cols: list[int]) -> None:
37 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected