Frequency Merge Tree
Square interview questions · Medium · Coding round · 6 tests
Build a deterministic Huffman-style merge tree from character frequencies in a string.
The full question, tests and reference solution are available with a plan that includes Square.
Run your code with Ctrl+Enter to see results.