示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            LList testLL = new LList(new Node(4));

            testLL.Append(new Node(21));
            Node newNode = new Node(5);

            testLL.AddBefore(newNode, 21);

            testLL.Print();



            int value = testLL.KthFromEnd(1);

            Console.WriteLine(value);
            Console.ReadKey();

            Console.WriteLine($"{testLL.Head.Value}");
        }