You are viewing a single comment's thread. Return to all comments →
use this c = S.charAt(i) == '1' ? c.right : c.left; as you are comparing a character value
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 →
use this c = S.charAt(i) == '1' ? c.right : c.left; as you are comparing a character value