Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ height
Method
height
src/tree/binary/tree.rs:10–12 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
8
9
impl<K, V> Tree<K, V> {
10
pub fn height(&self) -> usize {
11
height(self.root)
12
}
13
14
pub fn size(&self) -> usize {
15
self.size
Callers
1
tree_height
Function · 0.80
Calls
1
height
Function · 0.70
Tested by
1
tree_height
Function · 0.64