Quote:
How to code huffman code for duplicated alphabets in C?
There is no duplicated alphabet in the question, or you need to define what it means to you.
Quote:
I can't came up with anything.
It is just not possible, or you need to talk seriously with your teacher.
You need to think about the requirement and list the tasks to do in order for each part of requirement.
See which task you can solve and which ones you can't.
show your work and ask specific questions.
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.