This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from typing import Tuple | |
| class TrieNode(object): | |
| """ | |
| Our trie node implementation. Very basic. but does the job | |
| """ | |
| def __init__(self, char: str): | |
| self.char = char |