Binary search tree: maximum

From Algowiki
Revision as of 22:05, 19 September 2014 by Jhohmann (talk | contribs)
Jump to navigation Jump to search

TREE-MAXiMUM (x)

while right[x] ≠ NULL
x = right[x]
return key[x]