Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BinNode<int> s = new BinNode<int>(5);
- BinNode<int> s1 = new BinNode<int>(7);
- BinNode<int> s2 = new BinNode<int>(7);
- s.SetLeft(s1);
- s.SetRight(s2);
- BinNode<int> s3 = new BinNode<int>(3);
- BinNode<int> s4 = new BinNode<int>(3);
- s1.SetLeft(s3);
- s1.SetRight(s3);
- BinNode<int> s5 = new BinNode<int>(3);
- BinNode<int> s6 = new BinNode<int>(3);
- s2.SetLeft(s5);
- s2.SetRight(s6);
- BinNode<int> s7 = new BinNode<int>(2);
- s6.SetLeft(s7);
- BinNode<int> s8 = new BinNode<int>(2);
- s7.SetLeft(s8);
- BinNode<int> s9 = new BinNode<int>(6);
- BinNode<int> s10 = new BinNode<int>(10);
- BinNode<int> s11 = new BinNode<int>(6);
- s2.SetLeft(s9);
- s9.SetLeft(s10);
- s10.SetRight(s11);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement