public void AddToEnd(int data) { if (next == null) { next = new NodeR(data); } else { next.AddToEnd(data); } }
public void AddFirst(int data) { if (first == null) { first = new NodeR(data); } else { var temp = new NodeR(data); temp.next = first; first = temp; } }
public void AddLast(int item) { var node = new NodeR(item); if (first == null) { first = new NodeR(item); } else { first.AddToEnd(item); } }
//Construtor Raiz com 1 Node / Root contructor with 1 Node public Node(TriaguloDelaunay valor, NodeR) { Node(valor, null, nodeR); }
public LinkedListRecursion() { first = null; }
public NodeR(int item) { value = item; next = null; }