use structs for HuffmanNode

This commit is contained in:
Jorge Morante 2023-10-26 18:45:34 +02:00
parent 3ef6184fde
commit abca481d49
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
require "./priority_queue"
class HuffmanNode
struct HuffmanNode
def initialize(weight : Int32, children : Array(HuffmanNode))
@weight = weight
@children = children