예제 #1
0
파일: task_10_1.cs 프로젝트: romos/funcprog
        public static void Main(string[] args)
        {
            Node n = new Node(1, new Node(1), new Node(1, new Node(1), null));
            Console.WriteLine("{0}", n.Any(x => x % 2 == 0));

            n = new Node(1, new Node(1), new Node(1, new Node(2), null));
            Console.WriteLine("{0}", n.Any(x => x % 2 == 0));
        }
예제 #2
0
파일: task_10_1.cs 프로젝트: romos/funcprog
 public Node(int val, Node left, Node right)
 {
     this.Val = val;
     this.Right = right;
     this.Left = left;
 }