MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / Heap

Class Heap

src/data_structures/heap.rs:17–20  ·  view source on GitHub ↗

A heap data structure that can be used as a min-heap, max-heap or with custom comparators. This struct manages a collection of items where the heap property is maintained. The heap can be configured to order elements based on a provided comparator function, allowing for both min-heap and max-heap functionalities, as well as custom sorting orders.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected