Created
February 4, 2021 12:27
-
-
Save prakhar21/4e0d48349afbaf14db1972e6d32be520 to your computer and use it in GitHub Desktop.
Trie Node in Python
This file contains 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
class TrieNode: | |
def __init__(self): | |
self.child = {} | |
self.last = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment