Tree: Huffman Decoding

  • + 1 comment

    Not true, having the OS do output repeatedly is very time consuming unless its able to cache it, which is what a String Builder explicitly does. Print/output is not really a constant time operation, so while you think you save space but not having a string, you are in fact calling a method which blocks until the OS handles it, which adds huge delays for each iteration.