Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. /**
  2. * public String min()
  3. *
  4. * Returns the info of the item with the smallest key in the tree,
  5. * or null if the tree is empty
  6. */
  7. public String min()
  8. {
  9. if(this.empty())
  10. return null;
  11. IWAVLNode pos = this.root;
  12. while(pos.getLeft().isRealNode())
  13. pos = pos.getLeft();
  14. return pos.getValue();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement