Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. BinNode<int> s = new BinNode<int>(8);
  2. BinNode<int> s2 = new BinNode<int>(1);
  3. BinNode<int> s3 = new BinNode<int>(9);
  4. s.SetLeft(s2);
  5. s.SetRight(s3);
  6. BinNode<int> s4 = new BinNode<int>(2);
  7. s2.SetLeft(s4);
  8. BinNode<int> s5 = new BinNode<int>(5);
  9. BinNode<int> s6 = new BinNode<int>(7);
  10. s3.SetLeft(s5);
  11. s3.SetRight(s6);
  12. BinNode<int> s7 = new BinNode<int>(0);
  13. s6.SetRight(s7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement