Some error occured while loading page for you. Please try again.
You are viewing a single comment's thread. Return to all comments →
Try to solve/debug it by yourself. If someone else told you the answer, they'd have just ripped you off the opportunity to learn how to find and fix your own mistake.
There is no other way (to learn other than by working it out by yourself).
I have tried that someone's approach it worked.only difference is sysout :( .. I didnt debug becoz for this code since the prerequisite is to create a huffman tree.Even I tried that(didnt check online readymade huffman tree code,I implemented huffman tree bymyself),but I couldn't build proper huffman tree. But yeah I have learnt the concept and tried by myself.Yet I am still surprised why that one single thing made difference.I agree with you,even I debug rather than commenting here.But as I said the prerequisite code is not properly setup in my IDE so I didnt debug to the fullest. Thanks anyway.I appreciate your response.