getMax
Returns the largest Node by key in the treap if there is one.
Use getEntryForExisting() to replace/remove this Node from the treap.
Function parameters
Parameters
Functions in this namespace
Functions
Source
Implementation
pub fn getMax(self: Self) ?*Node {
if (self.root) |root| return extremeInSubtreeOnDirection(root, 1);
return null;
}