Anonymous user
Huffman coding: Difference between revisions
m
→By building a tree: typo
m (→Testing: add whitespace) |
m (→By building a tree: typo) |
||
Line 3,736:
===By building a tree===
This version uses nested <code>Array</code>s to
{{works with|rakudo|2015-12-17}}
Line 3,752:
multi walk ([$node1, $node2], $prefix) { walk $node1, $prefix ~ '0';
walk $node2, $prefix ~ '1'; }</lang>
===Without building a tree===
|