pub fn getMax(self: Self) ?*Node
Returns the largest Node by key in the treap if there is one. Use getEntryForExisting() to replace/remove this Node from the treap.
getEntryForExisting()
self: Self
98 99 100 101
pub fn getMax(self: Self) ?*Node { if (self.root) |root| return extremeInSubtreeOnDirection(root, 1); return null; }
Returns the largest Node by key in the treap if there is one. Use
getEntryForExisting()to replace/remove this Node from the treap.