Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class Node {
  2. int key;
  3. Node left;
  4. Node right;
  5. }
  6.  
  7. // There's another thread which has a reference (temp) pointing to root's left child:
  8. Node temp = root.left;
  9. // and later, I replace the root's left child with another node.
  10. root.left = new Node()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement