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