use structs for HuffmanNode
This commit is contained in:
parent
3ef6184fde
commit
abca481d49
|
@ -1,6 +1,6 @@
|
|||
require "./priority_queue"
|
||||
|
||||
class HuffmanNode
|
||||
struct HuffmanNode
|
||||
def initialize(weight : Int32, children : Array(HuffmanNode))
|
||||
@weight = weight
|
||||
@children = children
|
||||
|
|
Loading…
Reference in New Issue