← Google questions

Decode Map to Huffman Tree

Filed under Google

Given a Map where keys are characters and values are their depths in a full binary tree, reconstruct the tree. Shorter paths and earlier alphabetical characters should be placed on the left.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.