public void TestGetKthNodeFromLastUsingRunnerTechnique() { var headNode = new SingleLinkedListNode<int>(1); var linkedList = new SingleLinkedList<int>(headNode); var secondNode = new SingleLinkedListNode<int>(2); var thirdNode = new SingleLinkedListNode<int>(3); var fourthNode = new SingleLinkedListNode<int>(4); var fifthNode = new SingleLinkedListNode<int>(5); var sixthNode = new SingleLinkedListNode<int>(6); var seventhNode = new SingleLinkedListNode<int>(7); linkedList.AddToTail(secondNode); linkedList.AddToTail(thirdNode); linkedList.AddToTail(fourthNode); linkedList.AddToTail(fifthNode); linkedList.AddToTail(sixthNode); linkedList.AddToTail(seventhNode); int kthNodeFromLastUsingRunnerTechnique = linkedList.GetKthNodeFromLastUsingRunnerTechnique(5); Assert.AreEqual(3,kthNodeFromLastUsingRunnerTechnique); }