Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ min
Method
min
src/tree/binary/bst.rs:46–48 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
44
}
45
46
fn min(&self) -> Option<&K> {
47
unsafe { find_min(self.root).map(|p| &p.as_ref().key) }
48
}
49
50
fn max(&self) -> Option<&K> {
51
unsafe { find_max(self.root).map(|p| &p.as_ref().key) }
Callers
1
binary_search_tree_min_max
Function · 0.45
Calls
1
find_min
Function · 0.85
Tested by
1
binary_search_tree_min_max
Function · 0.36