The async library’s priorityQueue currently uses a doubly linked list internally, causing O(n) insertion…
The async library’s priorityQueue currently uses a doubly linked list internally, causing O(n) insertion…: a task in LegoFlow-SWE (Harbor dataset). Provide a Heap class that can serve as the underlying data structure. The heap must publicly expose a length property that accurately reflects the…
The task
Provide a **`Heap`** class that can serve as the underlying data structure. The heap must publicly expose a **`length`** property that accurately reflects the number of elements at any time.
Part of Lego-X/LegoFlow-SWE.