Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. BinNode<int> s = new BinNode<int>(5);
  2. BinNode<int> s1 = new BinNode<int>(7);
  3. BinNode<int> s2 = new BinNode<int>(7);
  4. s.SetLeft(s1);
  5. s.SetRight(s2);
  6. BinNode<int> s3 = new BinNode<int>(3);
  7. BinNode<int> s4 = new BinNode<int>(3);
  8. s1.SetLeft(s3);
  9. s1.SetRight(s3);
  10. BinNode<int> s5 = new BinNode<int>(3);
  11. BinNode<int> s6 = new BinNode<int>(3);
  12. s2.SetLeft(s5);
  13. s2.SetRight(s6);
  14. BinNode<int> s7 = new BinNode<int>(2);
  15. s6.SetLeft(s7);
  16. BinNode<int> s8 = new BinNode<int>(2);
  17. s7.SetLeft(s8);
  18. BinNode<int> s9 = new BinNode<int>(6);
  19. BinNode<int> s10 = new BinNode<int>(10);
  20. BinNode<int> s11 = new BinNode<int>(6);
  21. s2.SetLeft(s9);
  22. s9.SetLeft(s10);
  23. s10.SetRight(s11);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement