You are viewing a single comment's thread. Return to all comments →
Because you are printing '\0' chars as well of the non-leaf nodes. add if (node.data != '\0') before sout, it would pass.
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Huffman Decoding
You are viewing a single comment's thread. Return to all comments →
Because you are printing '\0' chars as well of the non-leaf nodes. add if (node.data != '\0') before sout, it would pass.