how do you encode words using the huffman code such as NEED
Take a look at my Huffman in C# project: https://github.com/kad0xf/HuffmanSharp