We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Tree: Huffman Decoding
- Discussions
Tree: Huffman Decoding
Tree: Huffman Decoding
Sort by
recency
|
75 Discussions
|
Please Login in order to post a comment
Python solution:
Instructions should have been clearer on the "output" of the function either returning or printing the string.
I think the Python3 version is a bit outdated. It gives you the original string and not the encoded one.
My answer with Typescript
Java 8 Solution:-
Notice: In python, The null of node data judgement condition should be "\0" rather than "", " " or None.('\0' is treated simply as a character within a string.)