2 ms·
If you want balanced trees, have a look at what Rust's standard library does with BTreeMap.
by eru 1y ago
If you want balanced trees, have a look at what Rust's standard library does with BTreeMap.
- jeffparsons 1y agoAnd with a little work you can even use them to map ranges of keys to values in a way that's reminiscent of interval trees — e.g. https://crates.io/crates/rangemap https://crates.io/crates/rangemap. (Disclosure: that's my crate.)