Solved huffman tree problems