Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
static void InsertAfter<T>(LinkedListNode<T> prev, T value)
|
||||
{
|
||||
prev.Next = new Link() { Value = value, Next = prev.Next };
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue