VitalyD

Untitled

May 13th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1.    if (curNode == null)
  2.             {
  3.                 while(curNode.Next != null)
  4.                 {
  5.                     curNode = curNode.Next;
  6.                 }
  7.                 curNode.Next = new Node(value, null);
  8.                
  9.             }
  10.             else
  11.             {
  12.                 _root = new Node(value, null);
  13.             }
Advertisement
Add Comment
Please, Sign In to add comment