Пример #1
0
        private static void RunLinkedList()
        {
            int[]      sampleNumbers = ReadSample(SampleSize, 100);
            LinkedList list          = new LinkedList();

            for (int i = 0; i < sampleNumbers.Length; i++)
            {
                list.InsertBegining(sampleNumbers[i]);
            }
            Console.WriteLine(list);
            list.Reverse();
            Console.WriteLine(list);
        }