huffmanEncode (code)

this is giving null value after encoding and nothing , please tell me what is the error

Hi @vikashkmr519,
You need to put heap also in the same class while submitting.
Heap minHeap = new Heap<>(true); Line 30
This is giving error. And remove package tries while submitting.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.