Exemple #1
0
        public Node FindNode(int number)
        {
            switch (number.CompareTo(this.Number))
            {
            case -1: return(LeftNode.FindNode(number));

            case 0: return(this);

            case 1: return(RightNode.FindNode(number));

            default: return(null);
            }
        }