• Converts a binomial heap to a sorted array

    Parameters

    Returns any[]

    a sorted array containing the elements of the heap

    if the heap is empty