Amazon Interview Question

Write a program for creating Huffman Coding for a set of characters given its frequency table.

Interview Answers

Anonymous

Dec 4, 2011

cs.nyu.edu/~melamed/courses/102/lectures/huffman.ppt

1

Anonymous

Apr 1, 2010

You need to use Min Heap. Basically you need to extract twice (2 least frequency chars), combine the letters and add it back to the heap.

Amazon Interview Question: Write a program for creating Huffman Coding for a set of characters given its frequency table. | Glassdoor