Updated Doubly linked list to allow for the combining of 2 lists
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user