jweinst1
12/9/2015 - 2:34 AM

basic trie object

basic trie object

#implementation of word tries

class trie(object):
    
    def __init__(self, char, children=[]):
        self.char = char
        self.children = children
    def __repr__(self):
        return self.char
    def __str__(self):
        return self.char