static void SumPath() { var obj = new CareerCupQnA(); var treeO = new TreesNGraph(); obj.SumPath(treeO.PopulateBinarySTree(), 28); }
static void CheckBST() { var obj = new CareerCupQnA(); var obj1 = new TreesNGraph(); var binaryTree = obj1.PopulateBinarySTree(); Console.WriteLine("InOrder Starts"); Console.WriteLine(obj.CheckBST(binaryTree)); }