Tree: Huffman Decoding

  • + 2 comments

    what does the "temp = root " does here in the end

    if temp.right==None and temp.left==None:
                string.append(temp.data)
                temp=root  <---this one
        b=''.join(string)
        print b