public void TestRemovalOfDuplicatesWithoutBuffer(List <int> inputList, string expected)
        {
            SinglyLinkedList node = LinkedListCreator.CreateSinglyLinkedListFromGenericList(inputList);

            LinkedList_1.RemoveDuplicatesWithoutBuffer(node);
            Assert.AreEqual(expected, SinglyLinkedList.ToString(node));
        }
        public void LinkedList_2RecursiveRefConsoleWrite(List <int> inputList, int kToTheLastElementNumber, int expectedResult)
        {
            SinglyLinkedList node      = LinkedListCreator.CreateSinglyLinkedListFromGenericList(inputList);
            int kToTheLastElementValue = 0;

            LinkedList_2.PrintKthElementRecursive(node, kToTheLastElementNumber, ref kToTheLastElementValue);
            Assert.AreEqual(expectedResult, kToTheLastElementValue);
        }