Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1.  if bst.label<v:
  2.         if(bst.left is BST.empty):
  3.             bst.left == BST(v)
  4.         else:
  5.             insert(bst.right,v)
  6.     elif bst.label>v:
  7.         if(bst.right is BST.empty):
  8.             bst.right == BST(v)
  9.         else:
  10.             insert(bst.left,v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement