public void deleteBackHalf()
if(head == null && head.next == null)
while (fast != null && fast.next != null)
public void displayContents()
Console.Write(current.data +"->");
static void Main(string[] args)
CustomLinkedList ll = new CustomLinkedList();
Node firstNode = new Node(3);
Node secondNode = new Node(4);
Node thirdNode = new Node(5);
Node fourthNode = new Node(6);
firstNode.next = secondNode;
secondNode.next = thirdNode;
thirdNode.next = fourthNode;