RosettaCodeData/Task/Singly-linked-list-Element-insertion/C-sharp/singly-linked-list-element-insertion-2.cs

9 lines
178 B
C#
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
static void Main()
{
//Create A(5)->B(7)
var A = new LinkedListNode<int>() { Value = 5 };
InsertAfter(A, 7);
//Insert C between A and B
InsertAfter(A, 15);
}