| ▲ | eru a day ago | |||||||||||||
If you want balanced trees, have a look at what Rust's standard library does with BTreeMap. | ||||||||||||||
| ▲ | jeffparsons a day ago | parent [-] | |||||||||||||
And 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. (Disclosure: that's my crate.) | ||||||||||||||
| ||||||||||||||