Huffman coding: Difference between revisions

m
(Added Zig)
m (→‎{{header|Wren}}: Minor tidy)
(One intermediate revision by one other user not shown)
Line 7,522:
{{libheader|Wren-queue}}
Note that the results differ from Java because the PriorityQueue implementation is not the same.
<syntaxhighlight lang="ecmascriptwren">import "./queue" for PriorityQueue
 
class HuffmanTree {
Line 7,621:
=={{header|Zig}}==
 
{{trans|Rust}}
Adapted Rust solution.
 
<syntaxhighlight lang="zig">
9,479

edits