Glossary: Algorithms Beyond the Basics in Rust
Reverse
Also written: std::cmp::Reverse
A wrapper that flips the order of a value so Rust's max-heap `BinaryHeap` acts as a min-heap and pops the smallest item first.
Glossary: Algorithms Beyond the Basics in Rust
Also written: std::cmp::Reverse
A wrapper that flips the order of a value so Rust's max-heap `BinaryHeap` acts as a min-heap and pops the smallest item first.