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
Tree: Huffman Decoding
Sort by
recency
|
529 Discussions
|
Please Login in order to post a comment
took some time to debug and understand it. The empty data is represented as string: chr(0) which is NUL in ascii.
this looks broken. there's no stub code, and all of the examples are looking for the same input as the output, so I was able to trivially "solve" this in ruby by doing:
puts gets
I type the following code:
Does this exercise actually makes sense? The Java 15 IDE was giving me the plain string (ABACA) in main args, whilst the question says that you'll get the
s="0110101"
like strings. I ended up with the solution for hoffman encoding instead of the decoding