trees
This is an old revision of the document!
Trees
class Node:
def __init__(self, ch, freq, left, right):
self.left = left
self.right = right
self.ch = ch
self.freq = freq
class Tree:
def __init__(self, root = None):
self.root = root
def get_root(self):
return self.root
def __str__(self):
trees.1578805321.txt.gz · Last modified: 2020/01/12 05:02 by jrseti