Example #1
0
 static void Main(string[] args)
 {
     DoublyLinkedList list = new DoublyLinkedList();
     list.InsertAtHead("Arthur");
     list.InsertAtHead("Katie");
     list.InsertAtPosition(2, "Shelley");
     list.PrintFromHead();
 }
Example #2
0
        static void Main(string[] args)
        {
            DoublyLinkedList list = new DoublyLinkedList();

            list.InsertAtHead("Arthur");
            list.InsertAtHead("Katie");
            list.InsertAtPosition(2, "Shelley");
            list.PrintFromHead();
        }