Пример #1
0
        public static void FindtheNthElement()
        {
            var obj     = new CareerCupQnA();
            var number1 = new myLinkedList <int>
            {
                data = 2,
                Next = new myLinkedList <int>
                {
                    data = 5,
                    Next = new myLinkedList <int>
                    {
                        data = 6
                    }
                }
            };
            var a = obj.FindnthElement(number1, 10);

            Console.WriteLine(a.data);
        }