Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Node {
- int key;
- Node left;
- Node right;
- }
- // There's another thread which has a reference (temp) pointing to root's left child:
- Node temp = root.left;
- // and later, I replace the root's left child with another node.
- root.left = new Node()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement