Skip to content

Instantly share code, notes, and snippets.

@osori osori/trie_node.py
Created Dec 2, 2017

Embed
What would you like to do?
Trie Node implementation in Python
class Node(object):
"""
A node that consists of a trie.
"""
def __init__(self, key, data=None):
self.key = key
self.data = data
self.children = {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.