Beispiel #1
0
    private static void ConvertChildrenSumCaller()
    {
        var node  = GetTree();
        var node1 = GetSumTree();

        Console.WriteLine(Problems.ChildrenSumProperty(node));
        Console.WriteLine(Problems.ChildrenSumProperty(node1));

        Problems.ConvertChildrenSum(node);
        Problems.ConvertChildrenSum(node1);
        Console.WriteLine(Problems.ChildrenSumProperty(node));
        Console.WriteLine(Problems.ChildrenSumProperty(node1));
    }
Beispiel #2
0
 private static void ChildrenSumPropertyCaller()
 {
     Console.WriteLine(Problems.ChildrenSumProperty(GetTree()));
     Console.WriteLine(Problems.ChildrenSumProperty(GetSumTree()));
 }