Updated Doubly linked list to allow for the combining of 2 lists

This commit is contained in:
2022-03-15 21:37:24 +00:00
parent 5c91fce224
commit 7ced980a90
2 changed files with 37 additions and 0 deletions

View File

@ -16,6 +16,19 @@ list.Add(6);
list.Add(7);
list.Add(8);
DoublyLinkedList<int> list2 = new DoublyLinkedList<int>();
list2.Add(1);
list2.Add(2);
list2.Add(3);
list2.Add(4);
list2.Add(5);
list2.Add(6);
list2.Add(7);
list2.Add(8);
var list3 = DoublyLinkedList<int>.Create(list, null);
var x = list[-6];
Console.WriteLine(x);