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.
Unfortunately, this question does not currently work in JavaScript.
Python and C++14 (among others) are given decodeHuff(root, s) as the function to modify and are given the Node class and its constructors, while JavaScript just gives you a meaningless processData(input) function.
I worked with it, confused, for about 15 minutes before I tried it in another browser, then came to the Discussion posts here and realized the question was glitched.
Please give us JavaScript users decodeHuff(root, s) as well. :) Would love to solve this problem as part of my interview prep. Thanks.
Tree: Huffman Decoding
You are viewing a single comment's thread. Return to all comments →
Unfortunately, this question does not currently work in JavaScript.
Python and C++14 (among others) are given decodeHuff(root, s) as the function to modify and are given the Node class and its constructors, while JavaScript just gives you a meaningless processData(input) function.
I worked with it, confused, for about 15 minutes before I tried it in another browser, then came to the Discussion posts here and realized the question was glitched.
Please give us JavaScript users decodeHuff(root, s) as well. :) Would love to solve this problem as part of my interview prep. Thanks.