Practice
Learn
← Quit
0 / 0 correct
Rust
Medium
1 of 635
Rust's BinaryHeap is a max-heap. How do you use it as a min-heap?
A
Wrap elements in std::cmp::Reverse
B
Call heap.reverse()
C
Use BinaryHeap::new_min()
D
Negate every element is the only way