Heap Path

Interface

Implementation of the question: Heap Path.

class MinHeap
__init__()

Initialize an empty MinHeap.

make_heap_from_list(heap_list: list[int]) MinHeap

Return the MinHeap itself.

find_path_from_index(index: int) list[int]