public void TreePathsTest() { testTree test = new testTree(); TreeNode root = test.buildTreeTest(); TreePaths path = new TreePaths(); IList <string> paths = path.BinaryTreePaths(root); }
public void BSTFindModeTest() { testTree test = new testTree(); TreeNode root = test.buildTreeTest(new object[] { 2, 1, 3, null, null, 2, 4 }); Findmodes modes = new Findmodes(); int[] ints = modes.FindMode(root); }