예제 #1
0
 public void Add(LinkedNode node)
 {
     if (this.IsNull)
     {
         head = node; IsNull = false; Length++;
     }
     else
     {
         this.GetLast().next = node;
         Length++;
     }
 }
예제 #2
0
 public LinkedList(LinkedNode newHead)
 {
     head   = newHead;
     IsNull = false;
     Length = 1;
 }
예제 #3
0
 public LinkedNode(int num, LinkedNode newNext)
 {
     data = num;
     next = newNext;
 }