You are viewing a single comment's thread. Return to all comments →
Python
def decodeHuff(root, s): current = root for c in s: current = current.left if c == '0' else current.right if current.data!='\0': print(current.data, end = '') current = root
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Huffman Decoding
You are viewing a single comment's thread. Return to all comments →
Python