Introduction - If you have any usage issues, please Google them yourself
The first HuffmanTree () function to construct Huffman tree, and then main () main () the bottom up (that is, the array number zero node) to the upper layers of judgment, if the parent node on the left , The code is 0, if on the right side, then the code is 1. And finally outputs the generated code