Skip to content

Glossary: Coding Interviews in Rust

Reverse

Also written: std::cmp::Reverse

A Rust wrapper that flips the order of a value. It turns the max-heap `BinaryHeap` into a min-heap and lets a tuple sort counts biggest first.

Where the book teaches it

Related terms

BinaryHeapHeap for top k