MCPcopy Create free account
hub / github.com/ByteByteGoHq/coding-interview-patterns / TrieNode

Class TrieNode

python3/Tries/find_all_words_on_a_board.py:3–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from typing import List
2
3class TrieNode:
4 def __init__(self):
5 self.children = {}
6 self.word = None
7
8def find_all_words_on_a_board(board: List[List[str]], words: List[str]) -> List[str]:
9 root = TrieNode()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected