Median Heap
Usage
Add this to your Cargo.toml
:
[]
= "0.4"
Example
Elements of a MedianHeap
must be Ord
. If you want to create a MedianHeap
containing floating point numbers, you can use the ordered-float
crate.
let mut heap = new;
assert_eq!;
heap.push;
assert_eq!;
heap.push;
assert_eq!;