Full threadtcgv·Shameless plug: A couple of years ago I wrote an implementation of the huffman coding algorithm as well while studying it, along with unit tests. I was also interested in practicing OOP. You can find the result in the link below.- https://github.com/TCGV/HuffmanCodingView on HN