Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BinNode<int> s = new BinNode<int>(8);
- BinNode<int> s2 = new BinNode<int>(1);
- BinNode<int> s3 = new BinNode<int>(9);
- s.SetLeft(s2);
- s.SetRight(s3);
- BinNode<int> s4 = new BinNode<int>(2);
- s2.SetLeft(s4);
- BinNode<int> s5 = new BinNode<int>(5);
- BinNode<int> s6 = new BinNode<int>(7);
- s3.SetLeft(s5);
- s3.SetRight(s6);
- BinNode<int> s7 = new BinNode<int>(0);
- s6.SetRight(s7);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement