Two Sigma Interview Question

How to implement Huffman coding trees.