Esempio n. 1
0
        public static void Main(string[] args)
        {
            DoublyLinkedList doublyLinkedList = new DoublyLinkedList();

            doublyLinkedList.AddFirst(1);
            doublyLinkedList.AddFirst(2);
            doublyLinkedList.AddFirst(3);
            doublyLinkedList.Print(Console.WriteLine);
        }
Esempio n. 2
0
        public static void Main()
        {
            var doublyLinkedList = new DoublyLinkedList();

            doublyLinkedList.AddFirst(1);
            doublyLinkedList.AddFirst(2);
            doublyLinkedList.AddFirst(3);

            doublyLinkedList.Print(Console.WriteLine);
            Console.WriteLine(doublyLinkedList.Count == 3);
        }
Esempio n. 3
0
        public static void Main(string[] args)
        {
            DoublyLinkedList <string> doublyLinkedList = new DoublyLinkedList <string>();

            doublyLinkedList.Print(Console.WriteLine);
        }