Parallelize
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"fmt"
|
||||
"maps"
|
||||
"slices"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@@ -78,8 +77,6 @@ func (h Heap) String() string {
|
||||
strs = append(strs, fmt.Sprintf("{%#U}=%d", node.symbol, node.count))
|
||||
}
|
||||
|
||||
sort.Strings(strs)
|
||||
|
||||
return strings.Join(strs, ", ")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user