public static bool GetReverse(Node <int> head) { var r = ReverseList <int> .Reverse(head); var c = head; while (c != null && r != null) { if (c.Value != r.Value) { return(false); } c = c.Next; r = r.Next; } return(true); }
public int[] ReverseLinkedListTest(int[] input) => GetArrayFromList <int>(ReverseList <int> .Reverse(CreateList(input)));