Suppose that I have an array
X = ["a","b","c","d"]
with the corresponding weights
weight = [1,4,3,2]
How can I make heaps of X using weight
using DataStructures weight_heaps =BinaryMaxHeap(weight) # What I want to do X_heaps = BinaryMaxHeap(X,weight=weight)
I can not find it in the DataStructures package documentation. Thank you so much.